config.optimization.SplitChunkPlugin的正确配置应该是怎样的?自己配置出来的app.js和vendor.js的大小不对
config.optimization={ splitChunks: { cacheGroups: { vendors: { name: 'vendor', } } } }
Asset Size Chunks Chunk Names
app.e8019b78.js 73.7 KiB 0 [emitted] [immutable] app
bg.jpg 82.6 KiB [emitted]
index.html 303 bytes [emitted]
styles.3ae8a7d8.css 5.31 KiB 0 [emitted] app
vendor.ffab46c4.js 68.9 KiB 1 [emitted] [immutable] vendor