JayZangwill/vue-svga

Error: Module parse failed: Unexpected character '�' (1:1) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.

Opened this issue · 2 comments

df257 commented

好像还要配置loader,不知道该怎么配置?
image

df257 commented

还有import的时候,会有个语法检测错误,需要加个//@ts-ignore
image

vue-cli中在chainWebpack中配置loader
config.module
.rule('svga')
.text(/.svga$/)
.use('svga-loader')
.loader('svga-loader')
.end()