mirror of
https://github.com/ant-design/ant-design.git
synced 2025-07-26 00:26:53 +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) {
|
module.exports = function (webpackConfig) {
|
||||||
webpackConfig = getWebpackConfig(webpackConfig);
|
webpackConfig = getWebpackConfig(webpackConfig, true);
|
||||||
if (process.env.RUN_ENV === 'PRODUCTION') {
|
if (process.env.RUN_ENV === 'PRODUCTION') {
|
||||||
webpackConfig.forEach((config) => {
|
webpackConfig.forEach((config) => {
|
||||||
ignoreMomentLocale(config);
|
ignoreMomentLocale(config);
|
||||||
|
Loading…
Reference in New Issue
Block a user