build-scripts icon indicating copy to clipboard operation
build-scripts copied to clipboard

添加插件报错

Open beautiful-boyyy opened this issue 1 year ago • 0 comments

const MomentLocalesPlugin = require('@ant-design/moment-webpack-plugin');
module.exports = ({ context, onGetWebpackConfig }) => {
  // 这里面可以写哪些,具体请查看插件开发章节
  onGetWebpackConfig((config) => {
    config.plugin('moment').use(MomentLocalesPlugin);
  });
}

抛出: Screenshot 2023-05-08 at 11 06 18

beautiful-boyyy avatar May 08 '23 03:05 beautiful-boyyy