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

feat: 集成报表菜单

parent e62f957d
Pipeline #42995 skipped with stages
...@@ -28,15 +28,15 @@ rm( ...@@ -28,15 +28,15 @@ rm(
console.log(err) console.log(err)
throw err throw err
} }
// process.stdout.write(`${stats.toString({ process.stdout.write(`${stats.toString({
// colors: true, colors: true,
// color: true, color: true,
// progress: true, progress: true,
// modules: false, modules: false,
// children: false, children: false,
// chunks: true, chunks: true,
// chunkModules: true chunkModules: true
// }) }\n\n`) }) }\n\n`)
printFileSizes(stats, path.relative(process.cwd(), webpackConfig.output.path)); printFileSizes(stats, path.relative(process.cwd(), webpackConfig.output.path));
if (stats.hasErrors()) { if (stats.hasErrors()) {
......
...@@ -18,71 +18,70 @@ module.exports = require('./webpack.base.babel')({ ...@@ -18,71 +18,70 @@ 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