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:
Martin Brennan 2025-01-31 09:32:10 +10:00 committed by GitHub
parent 33fe79be6a
commit 5ebbba250a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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|