-
Notifications
You must be signed in to change notification settings - Fork 205
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
retype watch
does not refresh upon changes in CSS referenced in _includes/head.html
#324
Comments
The issue is likely caused because the browser is temporarily caching the css file. You can clear the cache by force reloading the page or by adding a cache-buster suffix to the css file path. Something like this: <link href="/static/css/retype-override.css?v=1.0" rel="stylesheet" /> Then just manually increment the cache buster when you want to force a complete reload the of the .css file. <link href="/static/css/retype-override.css?v=1.1" rel="stylesheet" /> Hope this helps. |
Unfortunately that is not really a solution. Ideally, the Kestrel server would add something like a As you probably know, it's currently quite hard to override the current retype.css (to change colors for example), so in order to efficiently create new CSS to override (and add to) the existing CSS, it would be very convenient if the changes show up immediately when saving the CSS file. |
For now I've got the following workaround (just in case anyone else has a similar issue):
|
Thanks for the update and sharing the |
As of Retype v3.0, there is a new The <link href="/static/css/retype-override.css?v={{ nonce }}" rel="stylesheet" /> Which will be emitted as the following in the generated HTML: <link href="/static/css/retype-override.css?v=3.0.1.739057412015" rel="stylesheet" /> Hope this helps. |
In order for us to override the default colors of retype, we have a custom CSS that we reference in
head.html
like this:When I make a change in the CSS, retype appears to detect this and reload as can be seen in the terminal (during a
retype watch
) but it does not refresh the browser window (like it does when I make a change to an .md file for example).It would be nice if the browser window refreshed when changes in the .css get detected.
The text was updated successfully, but these errors were encountered: