vue项目编译时,每次都会清空dist目录。如果想对dist编译目录进行Git管理,可在package.josn文件scripts->build
中添加--no-clean
指令
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --no-clean",
"lint": "vue-cli-service lint"
},
vue项目编译时,每次都会清空dist目录。如果想对dist编译目录进行Git管理,可在package.josn文件scripts->build
中添加--no-clean
指令
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --no-clean",
"lint": "vue-cli-service lint"
},
本文标题:vue npm build添加--no-clean指令
本文链接:https://www.haomeiwen.com/subject/sgraxhtx.html
网友评论