* get webpack config * @param {*} envMode * @returns
(envMode, config)
| 127 | * @returns |
| 128 | */ |
| 129 | function getWebpackConfig(envMode, config) { |
| 130 | let webpackConfigFile = envConfig[envMode].webpackConfigFile |
| 131 | if (!config.isDev && config.enableAnalyse) { |
| 132 | webpackConfigFile = envConfig[envMode].webpackAnalysisConfigFile |
| 133 | } |
| 134 | const { status } = checkFileExist([webpackConfigFile]) |
| 135 | if (!status) exitProcess(`${webpackConfigFile} webpack config file not found`) |
| 136 | return require(webpackConfigFile) |
| 137 | } |
| 138 | /** |
| 139 | * Compiler create |
| 140 | * @param {*} webpackConfig |
no test coverage detected