mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Include lib/stylesheet mtime in stylesheet cache (#31063)
Followup 23edfe7cc2
When working on changes to any of the lib/stylesheet/*.rb
files, the color_definitions.scss and other stylesheet
caches can be annoyingly persistent.
This commit adds all of these lib files to the `max_file_mtime`
part of the `fs_asset_cachebuster` cache key, so if any of
them are changed then the cache will break, making development
a lot easier.
This commit is contained in:
parent
33fe79be6a
commit
5ebbba250a
@ -172,6 +172,7 @@ class Stylesheet::Manager
|
||||
globs = [
|
||||
"#{Rails.root}/app/assets/stylesheets/**/*.*css",
|
||||
"#{Rails.root}/app/assets/images/**/*.*",
|
||||
"#{Rails.root}/lib/stylesheet/*.rb",
|
||||
]
|
||||
|
||||
Discourse.plugins.each do |plugin|
|
||||
|
Loading…
Reference in New Issue
Block a user