npm工作流 与webpack 分同环境配置

npm:http://www.ruanyifeng.com/blog/2016/10/npm_scripts.html

process.env.npm_lifecycle_event

process.argv               

 

webpack配置:https://blog.csdn.net/a250758092/article/details/81234419

利用: cross-env包或者yargs包

https://www.cnblogs.com/nanacln/p/7028275.html

https://www.jb51.net/article/137355.htm

https://www.jb51.net/article/137610.htm

http://www.cnblogs.com/weifeng123/p/9185962.html

https://my.oschina.net/shuaihong/blog/1938804

 

环境变量:https://segmentfault.com/a/1190000011683741

webpack:

https://www.cnblogs.com/tugenhua0707/p/9780621.html

vue-cli中是在build里设置了process.env.NODE_ENV = 'production'

 

posted @ 2019-03-04 11:11  little_ab  阅读(344)  评论(0编辑  收藏  举报