-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
fix: relative path html #8122
fix: relative path html #8122
Conversation
I don't know if we could support this without a breaking change. Could we import an npm module directly before? 🤔
Another issue is what happens with nested HTML, where does Maybe we should ask people to keep using relative paths instead? |
I think no base path( I don't know what is nested HTML |
Nested html as in an MPA where you have:
|
emm... the other way is call waring like style no resolved and suggest user add |
add the test to try it 👀 |
I have tested a bit. <link rel="stylesheet" href="normalize.css" /> <!-- this does not resolve to node_modules/normalize.css/normalize.css -->
<link rel="stylesheet" href="normalize.css/normalize.css" /> <!-- this does not resolve to node_modules/normalize.css/normalize.css -->
<script type="module" src="pkg"></script> <!-- this **does** resolve to node_modules/pkg/index.js --> So it would be a breaking change? |
I think we should use the
Fixed the issue for me, and should avoid the breaking change. What do y'all think? |
@sapphi-red now I know this use case thanks again @patak-dev @sapphi-red @bluwy help for me. please /cc the new change. |
Description
fix: #7818
Additional context
isExternalUrl is truth? html support
ftp / file
protocol?this PR make script style src attr relative path
from
to
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).