摘要:
在package.json中有如下设置: "scripts": { "dev": "node build/dev-server.js", "build:prod": "cross-env NODE_ENV=production env_config=prod node build/build.js" 阅读全文
posted @ 2019-01-16 20:35
front-gl
阅读(1232)
评论(0)
推荐(0)
摘要:
转:https://blog.csdn.net/robin_star_/article/details/83856363 前言:很好的打包优化的帖子,还没来的急去实测验证 1. 去掉 console 打印及 debug 信息,加快运行速度修改 /build/webpack.prod.conf.js 阅读全文
posted @ 2019-01-16 20:34
front-gl
阅读(2410)
评论(0)
推荐(0)
摘要:
转:https://blog.csdn.net/xinzi11243094/article/details/80521878 方法一:亲测真的有效 在项目开发中,我们的项目一般分为开发版、测试版、Pre版、Prod版。Vue-cli的默认环境一只有dev和prod两个,之前每次要发布测试版或Pre版 阅读全文
posted @ 2019-01-16 20:28
front-gl
阅读(3605)
评论(0)
推荐(0)

浙公网安备 33010602011771号