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

添加插件报错

Open theFG1998 opened this issue 2 years 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

theFG1998 avatar May 08 '23 03:05 theFG1998