build: update build config

This commit is contained in:
Benjy Cui 2017-05-27 10:05:07 +08:00
parent 1abbc1c31b
commit addc0ca521
2 changed files with 1 additions and 7 deletions

View File

@ -1,6 +0,0 @@
{
"presets": ["es2015", "react", "stage-0"],
"plugins": [
"add-module-exports"
]
}

View File

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