Closed
Description
My version of optimize-css-assets-webpack-plugin: 4.0.1
The issue I'm facing is the same as described here:
webpack-contrib/mini-css-extract-plugin#141
In summary, I'm defining source-maps on my configuration. I'm also using MiniCssExtractPlugin to extract the css modules to a specific bundle, but when using optimize-css-assets-webpack-plugin
on webpacks 4 optimization.minimizer
, the source-maps are not generated. Here is a snippet:
optimization: {
minimizer: [
new UglifyJsPlugin({
cache: true,
parallel: true,
sourceMap: true // set to true if you want JS source maps
}),
new OptimizeCSSAssetsPlugin({}) // <---- THIS. Commenting/Uncommenting results in: No Optimization with source-maps/ Optimization without source-maps
]
},
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': 'production'
}),
new MiniCssExtractPlugin({
filename: 'foo.min.css'
}),
],
devtools: 'source-maps'
Maybe optimize-css-assets-webpack-plugin is truncating source-maps some how?!
Metadata
Metadata
Assignees
Labels
No labels