ddcat1115
9 years ago
committed by
afc163
3 changed files with 20 additions and 2 deletions
@ -1 +1,13 @@ |
|||
module.exports = require('antd-tools/lib/getWebpackConfig'); |
|||
const getWebpackConfig = require('antd-tools/lib/getWebpackConfig'); |
|||
|
|||
module.exports = function (webpackConfig) { |
|||
webpackConfig = getWebpackConfig(webpackConfig); |
|||
if (process.env.RUN_ENV === 'PRODUCTION') { |
|||
// Fix ie8 compatibility
|
|||
webpackConfig[0].module.loaders.unshift({ |
|||
test: /\.jsx?$/, |
|||
loader: 'es3ify-loader', |
|||
}); |
|||
} |
|||
return webpackConfig; |
|||
}; |
|||
|
Loading…
Reference in new issue