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

CSS relative imports are not updated after build #254

Open
rschristian opened this issue Dec 15, 2020 · 1 comment
Open

CSS relative imports are not updated after build #254

rschristian opened this issue Dec 15, 2020 · 1 comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@rschristian
Copy link
Member

rschristian commented Dec 15, 2020

CSS relative imports are currently not updated after build. If the CSS file listed in my index.html say imports a additional.css, while the style.css gets copied to dist/assets.style.<hash>.css, additional.css will not, and style.<hash>.css will have the same import, as if they were still in the same directory.

Apologies if that's word-soup, here's an example repo with a build pushed: https://github.com/rschristian/wmr-css-imports

(non-relevant files omitted)

➜  ~/Projects/css-imports tree public
public
├── additional.css
└── style.css

style.css uses @import 'additional.css'; and this works fine in dev.

➜  ~/Projects/css-imports tree dist
dist
├── additional.css
├── assets
│   └── style.6c21df40.css

While the asset path changed (no longer in the same directory), the processed path has not.

@developit developit added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Dec 15, 2020
@JoviDeCroock
Copy link
Member

I guess this is due to the optimize-graph plugin opting out but us not moving it into the new folder when opting out, can look into it more later this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
3 participants