vue-svg-inline-loader icon indicating copy to clipboard operation
vue-svg-inline-loader copied to clipboard

~ npm包路径的替换解析

Open iRuxu opened this issue 4 years ago • 3 comments

默认的静态资源解析会对"~"开头的做npm包路径替换. 是不是需要加一下

iRuxu avatar Mar 14 '20 05:03 iRuxu

Hello,

sorry I don't speak chinese. Please translate it to english.

Thanks

oliverfindl avatar Mar 14 '20 09:03 oliverfindl

Oh.I'm so sorry. As you know Vue-cli will resolve the resource path from vue template part when it startswith "~" ,it will be replaced "$root/node_modules/". But your plugin didn't parse this . I think maybe you can optimize it.


p.s. I'm so sorry,I mistake you are an Chinese

iRuxu avatar Mar 15 '20 00:03 iRuxu

Hello,

this issue was solved long time ago, but it seems to appear again. Probably there were some breaking changes in webpack, but I couldn't find any mentions about resolve method in their upgrade guides to next version.

I will look into this later, until then I will leave this issue open.

Thanks

oliverfindl avatar Mar 15 '20 08:03 oliverfindl