Commit e62f957d authored by 邓晓峰's avatar 邓晓峰

feat: 集成报表菜单

parent 50857601
Pipeline #42994 passed with stages
in 1 minute 53 seconds
...@@ -18,71 +18,71 @@ module.exports = require('./webpack.base.babel')({ ...@@ -18,71 +18,71 @@ module.exports = require('./webpack.base.babel')({
// chunkFilename: '[name].[chunkhash].chunk.js', // chunkFilename: '[name].[chunkhash].chunk.js',
// }, // },
optimization: { // optimization: {
minimize: true, // minimize: true,
// minimizer: [ // minimizer: [
// new TerserPlugin({ // new TerserPlugin({
// terserOptions: { // terserOptions: {
// warnings: false, // warnings: false,
// compress: { // compress: {
// comparisons: false, // comparisons: false,
// }, // },
// drop_debugger: true, // drop_debugger: true,
// drop_console: true, // drop_console: true,
// pure_funcs: ['console.log'], // pure_funcs: ['console.log'],
// parse: {}, // parse: {},
// mangle: true, // mangle: true,
// output: { // output: {
// comments: false, // comments: false,
// ascii_only: true, // ascii_only: true,
// }, // },
// }, // },
// parallel: true, // parallel: true,
// cache: true, // cache: true,
// sourceMap: true, // sourceMap: true,
// }), // }),
// ], // ],
nodeEnv: 'production', // nodeEnv: 'production',
// chunkIds: "deterministic", // // chunkIds: "deterministic",
// moduleIds: "deterministic", // // moduleIds: "deterministic",
usedExports: true, // usedExports: true,
sideEffects: true, // sideEffects: true,
concatenateModules: true, // concatenateModules: true,
runtimeChunk: 'single', // runtimeChunk: 'single',
splitChunks: { // splitChunks: {
// maxSize: 100 * 1024, // 控制包的最大字节数 // // maxSize: 100 * 1024, // 控制包的最大字节数
// minSize: 10 * 1024, // 控制包的最小字节数 // // minSize: 10 * 1024, // 控制包的最小字节数
cacheGroups: { // cacheGroups: {
vendor: { // vendor: {
chunks: 'all', // chunks: 'all',
minSize: 0, // minSize: 0,
maxInitialRequests: 10, // maxInitialRequests: 10,
test: /[\\/]node_modules[\\/]/, // test: /[\\/]node_modules[\\/]/,
name(module) { // name(module) {
const packageName = module.context.match( // const packageName = module.context.match(
/[\\/]node_modules[\\/](.*?)([\\/]|$)/, // /[\\/]node_modules[\\/](.*?)([\\/]|$)/,
)[1]; // )[1];
return `npm.${packageName.replace('@', '')}`; // return `npm.${packageName.replace('@', '')}`;
}, // },
}, // },
bizComponent: { // bizComponent: {
chunks: 'all', // chunks: 'all',
minSize: 0, // minSize: 0,
maxInitialRequests: 10, // maxInitialRequests: 10,
test: /[\\/]src[\\/]components[\\/]/, // test: /[\\/]src[\\/]components[\\/]/,
name: 'biz-component', // name: 'biz-component',
}, // },
react: { // react: {
chunks: 'all', // chunks: 'all',
minSize: 0, // minSize: 0,
maxInitialRequests: 10, // maxInitialRequests: 10,
test: /[\\/]node_modules[\\/]react-dom[\\/]/, // test: /[\\/]node_modules[\\/]react-dom[\\/]/,
name: 'react-dom', // name: 'react-dom',
} // }
}, // },
}, // },
}, // },
plugins: [ plugins: [
new CompressionPlugin({ new CompressionPlugin({
......
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