webpack xlsx
时间: 2023-09-17 12:13:17 浏览: 184
webpack文档
webpack xlsx是指在使用webpack进行打包时,通过配置externals选项将xlsx库从打包中排除出去,以减小打包体积并优化项目的性能。具体做法是在vue.config.js中的configureWebpack配置中添加externals属性,将xlsx库的包名与项目中引入的名字对应起来,这样webpack在打包时就会忽略对xlsx库的打包。这样一来,项目在运行时会从外部引入xlsx库,并与项目中的其他库进行正常的交互和使用。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [webpack配置排除打包-整体分析](https://blog.csdn.net/weixin_58384302/article/details/121070671)[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: 50%"]
- *3* [ljas-webpack:用于webpack配置组合的webpack配置部件](https://download.csdn.net/download/weixin_42143161/19066227)[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: 50%"]
[ .reference_list ]
阅读全文