-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
new URL(“./path/to/file.css”, import.meta.url) is incorrect #1047
Comments
If you want to use
Feel free to feedback, we will improve docs soon too and I will add a test case to provide example |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
The mini-css-extract-plugin prevents webpack from resolving URLs to the emitted CSS asset. Instead, this is resolved to the JS chunk, which contains no data. The expected result is that this instead resolves appropriately to the actual CSS asset.
Actual Behavior
See above. The URL will resolve to the JS chunk instead of the CSS asset.
Expected Behavior
The URL should resolve to the emitted CSS asset.
How Do We Reproduce?
Very easy to reproduce, simply bundle a URL that points to a CSS file.
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: