When using rspack.CssExtractRspackPlugin and configuring file names with [contenthash], the same resulting filename is observed even when the content of the file changes.
This behavior is unexpected, particularly when using realContentHash: true - where I understand it should calculate this hash from the actual content of the file.
Details
When using
rspack.CssExtractRspackPlugin
and configuring file names with[contenthash]
, the same resulting filename is observed even when the content of the file changes.This behavior is unexpected, particularly when using
realContentHash: true
- where I understand it should calculate this hash from the actual content of the file.Reproduce link
https://github.com/cblagg/rspack-css-contenthash-repro/tree/main
Reproduce Steps
Steps to reproduct:
npm i
CSS_MINIFIER=rspack npm run build
CSS_MINIFIER=webpack npm run build
.css
files in each ofdist/rspack
anddist/webpack
have differing content but share the same nameSystem Info
System:
Binaries:
Browsers:
npmPackages: