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

how can i reference a image on my .scss file? #34

Closed
gleydsonst opened this issue Oct 4, 2021 · 1 comment
Closed

how can i reference a image on my .scss file? #34

gleydsonst opened this issue Oct 4, 2021 · 1 comment

Comments

@gleydsonst
Copy link

Hello, I changed my rails application 6 to work with cssbundling instead webpacker. This is working perfectly on dev, but on prod, the link for images on style.scss is broken.

footer {
  background-image: url('ruby.png');
}

this works on dev, but in prod, I'm getting a 404 error. O noticed that the file is created in the /public/assets/ but for some reason the link returned is not the same. I mean without the hash in the name ruby-123a82sc347274ds63746a1wdhj32-png just https://mysite.com/assets/ruby.png

@dhh
Copy link
Member

dhh commented Oct 4, 2021

Duplicate of #22.

@dhh dhh closed this as completed Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants