Commit 8f55cc25 by lanyulei

feat: 更新 svg 图片加载失败问题。

parent af7fa6f3
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -56,6 +56,12 @@ module.exports = { ...@@ -56,6 +56,12 @@ module.exports = {
.rule('svg') .rule('svg')
.exclude.add(resolve('src/icons')) .exclude.add(resolve('src/icons'))
.end() .end()
.test(/\.svg$/)
.use('file-loader')
.loader('file-loader')
.options({
esModule: false // 关键:关闭ES模块模式
})
config.module config.module
.rule('icons') .rule('icons')
.test(/\.svg$/) .test(/\.svg$/)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment