Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬 为什么我使用svg-sprite-loader 不报错 svg也加载不出来 但其他项目中 同样的配置是可以的 #152

Open
zandko opened this issue Sep 4, 2020 · 1 comment

Comments

@zandko
Copy link

zandko commented Sep 4, 2020

module: {
rules: [
{
test: /.svg$/,
loader: 'url-loader',
exclude: [resolve('app/web/icons/')],
options: {
limit: 1024
}
},
{
test: /.svg$/,
loader: 'svg-sprite-loader',
include: [resolve('app/web/icons/')],
options: {
symbolId: 'icon-[name]'
}
},
]
},

@hubcarl
Copy link
Collaborator

hubcarl commented Sep 5, 2020

@push-over 请提供最小可重现 github demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants