alfred-cli-service
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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 later
npm run pub

Package Sidebar

Install

npm i alfred-cli-service

Weekly Downloads

2

Version

1.1.0

License

ISC

Unpacked Size

49.4 kB

Total Files

29

Last publish

Collaborators

  • m_alfred