代码拉取完成,页面将自动刷新
A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
npm run dev 开发环境 npm run test 测试环境 npm run pre 预发环境 npm run build 正式环境
利用gulp 和 gulp-run 将正式包生成一个压缩的zip文件 放在dist1文件夹下。压缩包名称带上日期及版本号等信息;如:(Philips_production_2019-12-2_v1.0.0.zip)
步骤:
1.cnpm install --save-dev gulp@4.0.2
2.cnpm install gulp-run --save-dev
3.在项目根目录下创建一个gulpfile.js,里面加上对应代码
4.在build.js里面加上相关配置,并创建一个外部命令,如下:
var m=new run.Command("gulp zip");
m.exec();
5.npm run build 即可
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。