Update webpack.config.js

This commit is contained in:
二货机器人 2020-03-27 12:57:37 +08:00 committed by GitHub
parent ed95f64892
commit 18969f5089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,9 @@ if (process.env.RUN_ENV === 'PRODUCTION') {
});
webpackDarkConfig.forEach(config => {
ignoreMomentLocale(config);
externalMoment(config);
// rename default entry to dark entry
Object.keys(config.entry).forEach(entryName => {
config.entry[entryName.replace('antd', 'antd.dark')] = config.entry[entryName];