mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-27 19:15:13 +00:00
fix: 修复element-ui 字体图标加载不出来问题
This commit is contained in:
parent
a7252d16d1
commit
7921f1f9e5
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user