fix: 修复element-ui 字体图标加载不出来问题

This commit is contained in:
“huailei000” 2022-07-18 10:56:27 +08:00 committed by huailei
parent a7252d16d1
commit 7921f1f9e5
3 changed files with 0 additions and 14 deletions

View File

@ -106,20 +106,6 @@ module.exports = {
// when there are many pages, it will cause too many meaningless requests
config.plugins.delete('prefetch')
config.module
.rule('fonts')
.test(/.(ttf|otf|eot|woff|woff2)$/)
.use('url-loader')
.loader('url-loader')
.tap(options => {
options = {
limit: 50000,
name: '/public/fonts/[name].[ext]'
}
return options
})
.end()
// set svg-sprite-loader
config.module
.rule('svg')