mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-07 01:34:57 +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
|
// when there are many pages, it will cause too many meaningless requests
|
||||||
config.plugins.delete('prefetch')
|
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
|
// set svg-sprite-loader
|
||||||
config.module
|
config.module
|
||||||
.rule('svg')
|
.rule('svg')
|
||||||
|
Loading…
Reference in New Issue
Block a user