"build": "vue-cli-service build",
时间: 2023-09-23 18:11:39 浏览: 97
vue-cli-plugin-multiple-page:基于vue-cli https的buildwatch多页面条目插件
"build": "vue-cli-service build"是在package.json文件中的scripts属性中的一条指令。它是用于构建Vue.js项目的命令,通过运行npm run build可以执行这条指令。在执行该命令时,vue-cli-service会将process.env.NODE_ENV设置为"production",这样就可以在构建过程中进行相应的优化。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [vue-cli-service build 如何环境设置,打出不同环境的包](https://blog.csdn.net/qq_36437172/article/details/107992404)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Vue项目根据不同运行环境打包项目](https://blog.csdn.net/qq_38543537/article/details/121633079)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文