migration from vue2 to vue3 #405
1 changed files with 3 additions and 1 deletions
optimize build size
commit
c8eed69672
|
|
@ -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: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue