popring's Blog

前端打工人一枚,如果有有趣的问题,欢迎电邮,koler778@gmail.com。

0%

webpack 常用命令

  • webpack building for development
  • webpack -p building for production, minification (压缩,打包)
  • webpack --watch for continuous incremental building (监听变动并自动打包)
  • webpack -d including source maps(生成map映射文件,告知哪些模块最终打包到哪里了)
  • webpack --colors making building output pretty (美化展示信息)
阅读全文 »