自定义 webpack 配置
// dahlia.config.js
module.exports = {
webpack(config, env) {
return {
...config,
// to custom origin config
}
},
}自定义原理
// dahlia.config.js
module.exports = {
webpack(config, env) {
const newConfig = {
...config,
// 自定义 webpack publicPath
publicPath: 'http://0.0.0.0',
}
return newConfig
},
}使用 override 工具简化配置
使用多个 operator
如何编写自己的 operator
dahlia 提供 config operater
Last updated
Was this helpful?