Commit 5d0aa74f by good luck

deploy

parent 13f7a154
...@@ -43,6 +43,7 @@ module.exports = { ...@@ -43,6 +43,7 @@ module.exports = {
assetsDir, assetsDir,
outputDir, outputDir,
lintOnSave, lintOnSave,
transpileDependencies, transpileDependencies,
devServer: { devServer: {
hot: true, hot: true,
...@@ -106,23 +107,33 @@ module.exports = { ...@@ -106,23 +107,33 @@ module.exports = {
config.performance.set('hints', false) config.performance.set('hints', false)
config.devtool('none') config.devtool('none')
config.optimization.splitChunks({ config.optimization.splitChunks({
automaticNameDelimiter: '-',
chunks: 'all', chunks: 'all',
cacheGroups: { cacheGroups: {
libs: { chunk: {
name: 'chunk-libs', name: 'vab-chunk',
test: /[\\/]node_modules[\\/]/, test: /[\\/]node_modules[\\/]/,
minSize: 131072,
maxSize: 524288,
chunks: 'async',
minChunks: 2,
priority: 10, priority: 10,
chunks: 'initial',
}, },
elementUI: { vue: {
name: 'chunk-elementUI', name: 'vue',
test: /[\\/]node_modules[\\/](vue(.*)|core-js)[\\/]/,
chunks: 'initial',
priority: 20, priority: 20,
test: /[\\/]node_modules[\\/]_?element-ui(.*)/,
}, },
fortawesome: { elementUI: {
name: 'chunk-fortawesome', name: 'element-ui',
priority: 20, test: /[\\/]node_modules[\\/]element-ui(.*)[\\/]/,
test: /[\\/]node_modules[\\/]_?@fortawesome(.*)/, priority: 30,
},
extra: {
name: 'vab-layouts',
test: resolve('src/layouts'),
priority: 40,
}, },
}, },
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment