Commit 50169d50 by xinla

打包文件体积限制

1 parent 61e77ee2
......@@ -9,6 +9,8 @@ const envs = {
BASE_API: 'https://dev.linkwechat.net/linkwechat-dev-api',
SYSTEM_API: '/linkwechat-dev-api',
VIEW_URL: 'https://saas.pardigital.cn/file-view/onlinePreview?url=',
_ISGZIP: true, // 是否开启gzip压缩
_ISCDN: true, // 是否开启cdn加速
},
test: {
DOMAIN: 'https://demo.linkwechat.net',
......
......@@ -150,12 +150,13 @@ module.exports = {
config.optimization.splitChunks({
chunks: 'all',
minSize: 200000,
maxSize: 2000000,
cacheGroups: {
libs: {
name: 'chunk-libs',
test: /[\\/]node_modules[\\/]/,
priority: 10,
chunks: 'initial', // only package third parties that are initially dependent
},
// elementUI: {
// name: 'chunk-elementUI', // split elementUI into a single package
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!