vue+elementUI,icon打包后不显示,需要在build→utils.js文件中修改

1.找到build文件夹下utils.js文件

2.在以下代码片段中加入 publicPath: '../../'

if (options.extract) {
      return ExtractTextPlugin.extract({
        use: loaders,
        fallback: 'vue-style-loader',
        // 解决elementui icon打包后不显示的问题
        publicPath: '../../'
      })
    } else {
      return ['vue-style-loader'].concat(loaders)
    }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-07-05
  • 2022-12-23
  • 2021-11-29
  • 2022-01-03
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-05-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
相关资源
相似解决方案