xjt31

解压阿里云图标官网下载的代码:以下文件是有效的

配置file-loader

      {
        // test: /\.(woff|svg|eot|ttf)\??.*$/,
        // 排除css|js|html|less以外的文件
        exclude: /\.(css|js|html|less)$/,
        loader: "file-loader",
        options: {
          name: "[hash:10].[ext]",
        },
      },

修改iconfont.css中的url(可以不修改)。如果webpack报错了注释第四行,如果没报错可以不注释

https://blog.csdn.net/weixin_46187747/article/details/104604931

分类:

技术点:

相关文章:

  • 2021-12-21
  • 2021-10-21
  • 2021-11-18
  • 2021-07-23
  • 2021-08-06
  • 2021-08-10
  • 2021-10-30
  • 2021-11-29
猜你喜欢
  • 2021-12-26
  • 2021-06-17
  • 2021-09-14
  • 2021-07-08
  • 2021-05-27
  • 2021-12-06
相关资源
相似解决方案