webpack.config.js 374 B

1234567891011121314
  1. // Learn more on how to config.
  2. // - https://github.com/ant-tool/atool-build#配置扩展
  3. var HtmlWebpackPlugin = require('html-webpack-plugin');
  4. module.exports = function(webpackConfig) {
  5. webpackConfig.babel.plugins.push('transform-runtime');
  6. webpackConfig.babel.plugins.push(['import', {
  7. libraryName: 'antd',
  8. style: 'css',
  9. }]);
  10. return webpackConfig;
  11. };