render: poly drawing

This commit is contained in:
muerwre 2018-11-28 10:58:44 +07:00
parent 6ed0361acf
commit fb087c67ac
7 changed files with 76 additions and 13 deletions

View file

@ -114,11 +114,26 @@ module.exports = () => {
optimization: {
splitChunks: {
cacheGroups: {
// vendor chunk (uncomment if you want all node_modules to be in vendor.js bundle
leaflet: {
name: 'leaflet',
chunks: 'all',
test: /node_modules\/leaflet/,
priority: 21,
},
vendor: {
name: 'vendor',
chunks: 'all',
test: /node_modules/,
priority: 20,
reuseExistingChunk: true,
},
commons: {
name: 'commons',
chunks: 'initial',
minChunks: 2,
minSize: 0
minSize: 0,
reuseExistingChunk: true,
}
}
},