Closed abias closed 5 months ago
Addition: When this feature is implemented, it should also ship with a new scheduled task which re-loads the external SCSS and purges the theme cache on a regular basis. This is relevant as Moodle does not know when the external SCSS code source changes.
Even better, the theme could also offer a webhook which can be used to let the external SCSS code source (like Github) notify the theme and let it schedule the purging of the cache.
@madamadami wouldn't this also solve https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/issues/366 ?
I add myself as additional assignee as a colleague of me has already implemented a proof of concept for this issue on MoodleMootDACH this year. We will try to polish the code and submit a PR.
For running multiple Moodle instances with Boost Union who all share a common set of Custom SCSS code, I would like to propose to add the possibility for admins to configure external SCSS code sources. This external SCSS code source will then point to a SCSS file somewhere on the web, for example on Github. It will be fetched and integrated into the SCSS compilation process before the RAW SCSS code from within the Boost Union configuration.