CSS auto refresh not working?

Lately I’ve noticed that changes I make to CSS in theme components are not reflected in the site until I perform a hard refresh of the browser.

The stylesheet used to be automatically updated when the theme CSS was saved. Has something changed?

I’m concerned that users may not see the latest CSS without hard refreshing their browser

6 Likes

I’ll second this one. I didn’t fully realize it until yesterday, but I know at least one member of our team has had this issue for a while now.

5 Likes

@angus and I also noted this on the Theme CLI topic.

https://meta.discourse.org/t/discourse-theme-cli-console-app-to-help-you-build-themes/82950/69

6 Likes

Not sure, maybe @david knows?

:thinking: I’ve been using the CLI all day for 2 days straight now, and I haven’t seen the issue.

5 Likes

I’ve seen this as well over the last week. I don’t think it’s theme related, as it happens for me even when editing core stylesheets. Will look into it.

7 Likes

Turns out this was two completely separate issues. One for core/plugin stylesheets in development, and one for child theme stylesheets. Both should now be fixed.

  1. No live reload when editing core/plugin scss, if you were using a non-default theme in development

https://github.com/discourse/discourse/commit/16fbbd096a6afbd7eefc1b8dd8048a8ad9474779

  1. Parent themes were not refreshed when editing child themes

https://github.com/discourse/discourse/commit/260398d706627f89765548f9cbd4eed2c1701968

14 Likes

This topic was automatically closed after 2 days. New replies are no longer allowed.