🔧 remove css-split-webpack-plugin which is useless in 4.0 (#20320)

This commit is contained in:
偏右 2019-12-18 12:29:17 +08:00 committed by GitHub
parent 4d6bcf4978
commit ae306c43e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
const path = require('path');
const CSSSplitWebpackPlugin = require('css-split-webpack-plugin').default;
const replaceLib = require('@ant-design/tools/lib/replaceLib');
const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig');
const { version } = require('../package.json');
@ -138,7 +137,6 @@ module.exports = {
type: 'javascript/auto',
});
config.plugins.push(new CSSSplitWebpackPlugin({ size: 4000 }));
config.plugins.push(
new webpack.DefinePlugin({
antdReproduceVersion: JSON.stringify(isNextVersion ? 'next' : 'latest'),