mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
Update webpack.config.js
This commit is contained in:
parent
ed95f64892
commit
18969f5089
@ -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…
Reference in New Issue
Block a user