npm run preview
时间: 2023-10-31 22:18:02 浏览: 207
npm run preview是一个命令,用于在开发中使用vue-cli提供的性能分析工具对功能进行打包分析。具体使用方法是在命令行中运行npm run preview -- --report。这个命令会生成一个报告,展示各个功能的打包情况,以便我们进行性能优化和调试。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vue 动态设置img的src地址无效,npm run build 后找不到文件的解决](https://download.csdn.net/download/weixin_38686399/13128519)[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%"]
- *2* *3* [打包优化会用到的代码](https://blog.csdn.net/m0_60823684/article/details/121038650)[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 ]
阅读全文