Closed df257 closed 3 years ago
const svga = await parser.load("@/assets/example.svga");用这个去加载的时候,会报 所以我改成了 const svga = require("@/assets/example.svga"); 但这样,好像需要加个loader,不知道该怎么加
好吧,放public里就好了。。。
@df257 这里有 Webpack 配置 的例子,可以参考下。
const svga = await parser.load("@/assets/example.svga");用这个去加载的时候,会报 所以我改成了 const svga = require("@/assets/example.svga"); 但这样,好像需要加个loader,不知道该怎么加