|
|
|
@ -3,6 +3,7 @@
|
|
|
|
|
const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig');
|
|
|
|
|
const PacktrackerPlugin = require('@packtracker/webpack-plugin');
|
|
|
|
|
const IgnoreEmitPlugin = require('ignore-emit-webpack-plugin');
|
|
|
|
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
|
|
|
|
|
|
|
|
|
const { webpack } = getWebpackConfig;
|
|
|
|
|
|
|
|
|
@ -58,6 +59,10 @@ if (process.env.RUN_ENV === 'PRODUCTION') {
|
|
|
|
|
fail_build: true,
|
|
|
|
|
exclude_assets: name => !['antd.min.js', 'antd.min.css'].includes(name),
|
|
|
|
|
}),
|
|
|
|
|
new BundleAnalyzerPlugin({
|
|
|
|
|
analyzerMode: 'static',
|
|
|
|
|
openAnalyzer: false,
|
|
|
|
|
}),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|