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

Generate sass/css doesn't use hash filenames #7

Open
tnguyen-advicetrade opened this issue Feb 24, 2021 · 0 comments
Open

Generate sass/css doesn't use hash filenames #7

tnguyen-advicetrade opened this issue Feb 24, 2021 · 0 comments

Comments

@tnguyen-advicetrade
Copy link

tnguyen-advicetrade commented Feb 24, 2021

When setting the resource root

i.e.
mix.setResourceRoot('public/assets');

The generate scss files do not use the hash for a respective image file.

The generated image filename:
2ndpg-hdr.0153009dd5cf3cc09e63.jpg

The resulting css style:
.someDiv { background-image: url(/public/assets/2ndpg-hdr.jpg?09845228d6032d2361194d24968b0c5c); }

As a result, images aren't displayed correctly

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

1 participant