npm run build:stage还是npm run build:prod
时间: 2023-09-05 19:12:40 浏览: 237
npm run build:stage和npm run build:prod是两个不同的构建命令。npm run build:stage用于构建一个用于开发或者测试环境的应用,而npm run build:prod则用于构建一个用于生产环境的应用。根据你提供的信息,使用npm run build:prod构建出来的包会比较小,适用于生产环境的部署。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [关于npm run build:prod和npm run build:stage的区别解释](https://blog.csdn.net/C05230/article/details/130388460)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [vue-cli3打包时vue-cli-service build怎么分不同环境(npm run build:stage和npm run build:prod)](https://blog.csdn.net/weixin_52428855/article/details/124631881)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [使用vue-cli打包过程中的步骤以及问题的解决](https://download.csdn.net/download/weixin_38747211/13200390)[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_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文