mike-diamond / media-query-splitting-plugin

Webpack 4 plugin for styles splitting by media query
MIT License
106 stars 17 forks source link

Chunk ids are changing #22

Open ryssbowh opened 3 years ago

ryssbowh commented 3 years ago

Hi,

Since v2, the content hash are changing for the splitted files, which didn't happen before. So I've got :

Which is impossible to use since they are not mapped in the manifest.

I'm using the following config for mini-css-extract-plugin : filename: '[name].[contenthash].css', chunkFilename: '[name].[contenthash].css'

I see it's related to another issue with ids changing, is it the expected behaviour now then ? If so, can we output results in the manifest so we can have access to the files names ?

Thanks

mike-diamond commented 3 years ago

Sure will update it to use with the manifest, until that you can read the output folder with CSS files (using fs) to get the list of them. Or use V1