From 18969f5089581b075e79811745700a7c91946820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Fri, 27 Mar 2020 12:57:37 +0800 Subject: [PATCH] Update webpack.config.js --- webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index a70fb83a8e..385f575c3d 100644 --- a/webpack.config.js +++ b/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];