optimize build size
This commit is contained in:
+3
-1
@@ -13,7 +13,7 @@ const isDev = buildMode === 'development'
|
||||
module.exports = {
|
||||
target: 'web',
|
||||
mode: buildMode,
|
||||
devtool: "inline-source-map",
|
||||
devtool: false,
|
||||
entry: {
|
||||
menu: path.resolve(path.join('src', 'menu.js')),
|
||||
admin: path.resolve(path.join('src', 'admin.js')),
|
||||
@@ -34,6 +34,8 @@ module.exports = {
|
||||
chunkIds: 'named',
|
||||
splitChunks: {
|
||||
automaticNameDelimiter: '-',
|
||||
minSize: 10000,
|
||||
maxSize: 250000,
|
||||
},
|
||||
minimize: !isDev,
|
||||
minimizer: [
|
||||
|
||||
Reference in New Issue
Block a user