-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
addURLDependency: use always relative path #2518
Conversation
@mischnic just fyi the previous PR you linked just got closed because master had been force-pushed and Github automatically closed all open PRs, it had not been rejected. |
Didn't compare the dates 😄 . But @devongovett wrote:
The previous PR added the public url, this makes the relative path correct. |
@DeMoorJasper @devongovett This broke our build. We have Currently, our CSS files that reference font files are ending up with a URL to each font file that includes the public URL and a path that seems to be the resolved path from the root dir and the relative path from the CSS file to the font file. The path from the CSS directory to the fonts directory is This PR is cool, but something is not quite right here. |
Is that second line referring to the url or your folder structure during development?
Wanted output structure:
What does Otherwise, a very minimal reproduction would be helpful. |
That looks about right, with the exception of the output structure. When I say folder outside the project I mean just that. If my project is at /Users/Robert/Developer/MyProject, then the path is /static/compliled/single/Robert/Developer/[font file].xxxxx.woff. |
↪️ Pull Request
Fixes #1801
Previously rejected implementation: #1809
💻 Examples
Running parcel with the two bundles.css as entry points, in the output
a/bundle.css would contain
url("foo.d7b28491.png")
(should be "../foo")✔️ PR Todo