(cb)
| 22 | } |
| 23 | |
| 24 | function transpileWebpackConfig(cb) { |
| 25 | const configPath = path.join(APP_PATH, getDXConfig().webpack) |
| 26 | const options = JSON.parse(fs.readFileSync(path.join(APP_PATH, '.babelrc'))) |
| 27 | transformFile(configPath, options, (err, result) => { |
| 28 | if (err) throw err |
| 29 | mkdir('-p', PUBLIC_DIR) |
| 30 | fs.writeFileSync(WEBPACK_PATH, result.code) |
| 31 | cb() |
| 32 | }) |
| 33 | } |
| 34 | |
| 35 | function validateEnv() { |
| 36 | if (!process.env.NODE_ENV) { |