vue npm run build
时间: 2023-08-25 11:13:36 浏览: 102
运行命令"npm run build"是用来对Vue项目进行打包的。当我们使用vue-cli脚手架完成一个项目后,可以通过命令行执行"npm run build"来将项目打包成静态文件,方便部署到互联网上或本地直接打开。打包后的文件会生成在项目根目录的dist文件夹中。需要注意的是,打包后的文件中的路径可能会有问题,需要手动修改路径指向根目录。打包后的项目文件可以通过打开dist文件夹中的index.html文件来查看。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [从零开始搭建vue项目 (晋级篇) npm run dev npm run build](https://blog.csdn.net/zbl744949461/article/details/110039452)[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^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [vue打包(npm run build)](https://blog.csdn.net/weixin_43953710/article/details/86982128)[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^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [vue使用npm run build命令打包](https://blog.csdn.net/acuum86248/article/details/102015778)[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^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文