-
-
Notifications
You must be signed in to change notification settings - Fork 781
Closed
Labels
bugSomething isn't workingSomething isn't workingpending triageThe issue/PR is currently untouched.The issue/PR is currently untouched.
Description
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- Run:
CSS_MINIFIER=rspack npm run build - Run:
CSS_MINIFIER=webpack npm run build - Observe
.cssfiles in each ofdist/rspackanddist/webpackhave differing content but share the same name
System Info
System:
- OS: macOS 13.6.3
- CPU: (10) arm64 Apple M1 Pro
- Memory: 2.76 GB / 32.00 GB
- Shell: 5.9 - /bin/zsh
Binaries:
- Node: 20.15.0 - ~/.nvm/versions/node/v20.15.0/bin/node
- npm: 10.7.0 - ~/.nvm/versions/node/v20.15.0/bin/npm
- pnpm: 9.12.2 - ~/.nvm/versions/node/v20.15.0/bin/pnpm
Browsers:
- Chrome: 130.0.6723.117
npmPackages:
- @rspack/cli: 1.1.0 => 1.1.0
- @rspack/core: 1.1.0 => 1.1.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpending triageThe issue/PR is currently untouched.The issue/PR is currently untouched.