-
-
Notifications
You must be signed in to change notification settings - Fork 621
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
Making changes to the CSS does not provoke a reboot of styles #128
Comments
Could be a few things: Did you make changes to the |
I'm having the same issue and can reproduce on a fresh clone of the repo.
Console outputs Same on node 18 and 20. |
Same issue for me with minimal changes to starter. I'm on windows, Node 18. I can see in dev tools that the cache busting link query string does change on save e.g. (?_11ty=169582224106) so the hotload trigger is working. However, if I open the link in a new tab, the old version of the CSS file is being served. If I look in the _site folder, the CSS has been updated. Would this point towards server caching, part of the incremental feature? I added --incremental but this had no effect. I have noticed that my HTML source code has a weird " -" character appended just after the body tag and before the CSS and reload-client script links. No idea if that is relevant 😬 |
For what it's worth—and I'm maybe out of my depth—I'm seeing that (after I commented out the inline style output in base.njk in favor of the to the external bundle file) the bundler in the output html remains pointing to the originally created version of the bundle after I change the css file in public/css. So like I make changes to the public/css file, I see _site/css/index.css change, but there's nothing happening in the _site/bundle folder. Console says "11ty][21:22:01.071 UTC] CSS updated without page reload." according to reload-client.js, so it's noticing that index.css is updating, but. |
Can also replicate this issue the same way as @grahamharper. I’m on macOS 14.1.1, using Node 18. |
When I switched to just referencing the CSS file directly instead of using the bundle plugin, live reload works:
|
I have tested the base blog today using node Using polling with Chokidar doesn't seem to improve things either. I am testing a PR on my own starter in the hope to use So this all points to |
I run 11ty by
npm run serve
. Every time I make any changes to the CSS, I can't see them. 11ty does not hot-reload changes, does not restart inself, does not passthrough Copy files fromcss
to_site/css
. I have to manually restart the developer server after each change tocss/*
fileThe text was updated successfully, but these errors were encountered: