mirror of
https://github.com/ant-design/ant-design.git
synced 2025-07-24 15:38:45 +08:00
build: update build config
This commit is contained in:
parent
1abbc1c31b
commit
addc0ca521
6
.babelrc
6
.babelrc
@ -1,6 +0,0 @@
|
||||
{
|
||||
"presets": ["es2015", "react", "stage-0"],
|
||||
"plugins": [
|
||||
"add-module-exports"
|
||||
]
|
||||
}
|
@ -20,7 +20,7 @@ function addLocales(webpackConfig) {
|
||||
}
|
||||
|
||||
module.exports = function (webpackConfig) {
|
||||
webpackConfig = getWebpackConfig(webpackConfig);
|
||||
webpackConfig = getWebpackConfig(webpackConfig, true);
|
||||
if (process.env.RUN_ENV === 'PRODUCTION') {
|
||||
webpackConfig.forEach((config) => {
|
||||
ignoreMomentLocale(config);
|
||||
|
Loading…
Reference in New Issue
Block a user