【发布时间】:2018-09-15 07:53:27
【问题描述】:
我们可以在 cli 3 中设置自定义模式。
因为它不是生产模式,所以不会是优化的构建。
如何将配置设置为自定义模式,以达到生产模式的优化构建。
custom mode(staging) in package.json
The files of default production mode(optimized), command: npm run build
The files of custom mode(staging) (not optimized), command: npm run staging
提前致谢。
【问题讨论】: