MCPcopy Create free account
hub / github.com/CloudOrc/SolidUI / getWebpackConfig

Function getWebpackConfig

solidui-web/scripts/start.js:129–137  ·  view source on GitHub ↗

* get webpack config * @param {*} envMode * @returns

(envMode, config)

Source from the content-addressed store, hash-verified

127 * @returns
128 */
129function 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

Callers 1

mainFunction · 0.85

Calls 2

checkFileExistFunction · 0.85
exitProcessFunction · 0.85

Tested by

no test coverage detected