Skip to content
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

[Bug]: image in css (css-loader) removes from dev-server after update some file #7912

Open
krutoo opened this issue Sep 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.

Comments

@krutoo
Copy link

krutoo commented Sep 16, 2024

System Info

System:
OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz
Memory: 22.65 GB / 31.21 GB
Container: Yes
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 20.15.0 - ~/.nvm/versions/node/v20.15.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v20.15.0/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v20.15.0/bin/npm
bun: 1.1.24 - ~/.bun/bin/bun
Browsers:
Chrome: 128.0.6613.137
npmPackages:
@rspack/cli: ^1.0.0 => 1.0.5
@rspack/core: ^1.0.0 => 1.0.5

Details

In example repo I have import of css file that contains link to local image

After any change in dev mode (for example change "Hello" text to "Hello!") image is removes from dev-server

Image also removes from /webpack-dev-server list

Reproduce link

https://github.com/krutoo/rspack-image-in-css-bug

Reproduce Steps

  1. npm i
  2. npm run dev
  3. see block with image as background in browser
  4. change "Hello, world!" to "Hello, world!123" in ./src/components/app/app.tsx
  5. update browser tab
  6. see that now image is 404
@krutoo krutoo added bug Something isn't working pending triage The issue/PR is currently untouched. labels Sep 16, 2024
@GiveMe-A-Name GiveMe-A-Name self-assigned this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

2 participants