类库分离
来源:4-6 SplitChunksPlugin 配置参数详解(2)
 
			慕婉清9413116
2019-07-27
如果index.js中同时引入了loadsh和vue两个库,如何配置才能让vue和loadsh个分离成单独的js文件,而不是统一的分离到vendors.js中呢
写回答
	2回答
- 
				  慕UI7807920 2019-10-19 vendors: { test: /[\\/]node_modules[\\/]/, priority: -10, filename: 'vendors.js' }, jquery: { test: /[\\/]node_modules[\\/]jquery[\\/]/, priority: 0, filename: 'jquery.js' }, 可以这样写 00
- 
				  Dell 2019-07-28 这块我在课程的这个小结的内容里讲到了,设置独立的chunk配置以及优先级即可呀 00
 
						