-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
SourceMap not working with Webpack 4.8.1 #141
Comments
@heyalbert interesting, looks like bug, feel free to investigate and send PR 👍 |
I've been able to replicate and get both working, @heyalbert do you happen to have |
I confirm that source maps will not be generated if I'm using |
Looks like bug in |
Same issue here. When I use OptimizeCSSAssetsPlugin along side with MiniCssExtractPlugin, even if the project is configured to use source maps (devtool: 'source-maps' or with SourceMapDevToolPlugin), the source map is not generated. |
I've created this issue there: |
Got it working! Just realized that the defaults are new OptimizeCSSAssetsPlugin({
cssProcessorOptions: {
map: {
inline: false
}
}
}) and it worked for me. Created also a PR for better docs at their README.md Anyway. I think this is not related to this project and this issue can be closed. new OptimizeCSSAssetsPlugin({}) to new OptimizeCSSAssetsPlugin({
cssProcessorOptions: {
map: {
inline: false // set to false if you want CSS source maps
}
}
}) Can anyone confirm if it works for you guys, before changing docs? |
Still buggy, incorrect filename reference |
Yes... I see now your point, @pldg . You're totally correct, this is still buggy. Sorry for my blidness! And thanks for taking the time to explaining it. |
this works: |
Hey guys,
Sadly, sourcemap is not working at all. Webpack 4.8.1 doesn't generate a .map in combination with mini-css-extract-plugin and sass-loader. Any fix?
Plugin configuration:
Rules:
Output:
As you can see, a style.css.map is not generated.
Furthermore: I started a project to try out different configurations.
https://github.com/heyalbert/webpack-starterkit
The text was updated successfully, but these errors were encountered: