fix frontblocklib
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
const TerserPlugin = require('terser-webpack-plugin');
|
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@@ -14,34 +12,5 @@ module.exports = {
|
|||||||
path: path.resolve(__dirname, '../../dist'),
|
path: path.resolve(__dirname, '../../dist'),
|
||||||
filename: 'FrontblockLib.js',
|
filename: 'FrontblockLib.js',
|
||||||
libraryTarget: 'commonjs',
|
libraryTarget: 'commonjs',
|
||||||
},
|
|
||||||
optimization: {
|
|
||||||
minimizer: [new TerserPlugin({
|
|
||||||
cache: true,
|
|
||||||
parallel: true,
|
|
||||||
terserOptions:{
|
|
||||||
mangle: false,
|
|
||||||
keep_classnames: true
|
|
||||||
}
|
|
||||||
})],
|
|
||||||
splitChunks: {
|
|
||||||
cacheGroups: {
|
|
||||||
common: {
|
|
||||||
chunks: 'all',
|
|
||||||
minChunks: 2,
|
|
||||||
maxInitialRequests: 5,
|
|
||||||
minSize: 0,
|
|
||||||
name: 'common'
|
|
||||||
},
|
|
||||||
vendor: {
|
|
||||||
test: /node_modules/,
|
|
||||||
chunks: 'all',
|
|
||||||
name: 'vendor',
|
|
||||||
priority: 10,
|
|
||||||
enforce: true,
|
|
||||||
minChunks: 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user