-
-
Notifications
You must be signed in to change notification settings - Fork 384
Prevent sourceMapUrl from appearing on extracted css file #223
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
Comments
Please provide a small reproduction repo |
Bug in |
as workaround you can use |
there is a if(sourceMap) in the SourceMapDevToolPlugin: https://github.com/webpack/webpack/blob/master/lib/SourceMapDevToolPlugin.js#L85 MCEP uses You could add an |
I ended up working around this by post processing and replacing the sourceMap url once the file was generated. It's not ideal, but it worked.
|
I am importing a css file in my app entry.js. I want to prevent the sourceMapUrl from appearing on the extracted css file. I've tried passing
sourceMap : false
to both css-loader and mini-css-extract-plugin, but it still generates the sourceMappingURL.Here are the relevant snippets of my config
Expected output:
No sourceMapUrl in the extracted css file.
Actual output:
/*# sourceMappingURL=../../../../entry.map*/
Version info:
webpack : 4.16.3
css-loader : 0.28.11
mini-css-extract-plugin : 0.4.1
Any help is appreciated. Thanks!
The text was updated successfully, but these errors were encountered: