alfred-cli-service
v1.1.0
Published
build web projects by webpack5
Downloads
6
Readme
alfred-cli-service
build web projects by webpack5
webpack-dev-server 最低node版本12.13.0 一些loader 最低node版本14.15.0
开发
alfred-cli-service serve
构建
alfred-cli-service build
审查配置
alfred-cli-service inspect
修改webpack配置
alfred.config.js新增plugins配置
// alfred.config.js
module.exports = {
// ...
plugins: [
'./plugin-update-webpack'
]
}
// ./plugin-update-webpack
module.exports = (api, options) => {
api.chainWebpack((webpackConfig) => {
webpackConfig.mode('development')
})
}
1.1.0新增chainWebpack配置项,无需创建插件直接修改
module.exports = {
// ...
chainWebpack: (webpackConfig) => {
webpackConfig.mode('development')
}
}
发布
np模块依赖Node.js 16 or laternpm run pub