private-music-react/webpack.config.js
2017-02-11 17:33:27 +08:00

13 lines
334 B
JavaScript

// Learn more on how to config.
// - https://github.com/ant-tool/atool-build#配置扩展
module.exports = function (webpackConfig) {
webpackConfig.babel.plugins.push('transform-runtime');
webpackConfig.babel.plugins.push(['import', {
libraryName: 'antd',
style: 'css',
}]);
return webpackConfig;
};