Browse Source

Update webpack.config.js

pull/22517/head
二货机器人 5 years ago
committed by GitHub
parent
commit
18969f5089
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      webpack.config.js

3
webpack.config.js

@ -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];

Loading…
Cancel
Save