mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
250df0f4e3
* fix #1970 * format webpack.config.js
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
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;
|
|
};
|