feat:更新
This commit is contained in:
1 parent
7f3254981c
commit
aa3bb707e6
4 files changed
+33
No files matched your search
@@ -28,4 +28,16 @@ module.exports = {
|
||||
css: {
|
||||
loaderOptions: {},
|
||||
},
|
||||
chainWebpack: (config) => {
|
||||
// config.module.rules.delete("svg"); //重点:删除默认配置中处理svg,
|
||||
config.module
|
||||
.rule("svg-sprite-loader")
|
||||
.test(/\.svg$/)
|
||||
.end()
|
||||
.use("svg-sprite-loader")
|
||||
.loader("svg-sprite-loader")
|
||||
.options({
|
||||
symbolId: "icon-[name]",
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user