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

~ npm包路径的替换解析 #40

Open
iRuxu opened this issue Mar 14, 2020 · 3 comments
Open

~ npm包路径的替换解析 #40

iRuxu opened this issue Mar 14, 2020 · 3 comments

Comments

@iRuxu
Copy link

iRuxu commented Mar 14, 2020

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

@oliverfindl
Copy link
Owner

Hello,

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

Thanks

@iRuxu
Copy link
Author

iRuxu commented Mar 15, 2020

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

@oliverfindl
Copy link
Owner

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

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

No branches or pull requests

2 participants