discourse/lib/stylesheet
David Taylor 1fd8f6df5f
PERF: Improve theme stylesheet compilation performance (#12850)
When building the `scss_load_paths`, we were creating a full export of the theme (including uploads), and not cleaning it up. With many uploads, this can be extremely slow (because it downloads every upload from S3), and the lack of cleanup could cause a disk to fill up over time.

This commit updates the ZipExporter to provide a `with_export_dir` API, which takes care of cleanup. It also adds a kwarg which allows exporting only extra_scss fields. This should make things much faster for themes with many uploads.
2021-04-27 14:33:43 +01:00
..
compiler.rb DEV: Refactor plugin SCSS compilation (#12359) 2021-03-12 11:17:42 -05:00
functions.rb DEV: Add SCSS helper to replace `asset-uri` and `image-uri` (#12664) 2021-04-12 13:57:39 +10:00
importer.rb DEV: Add SCSS helper to replace `asset-uri` and `image-uri` (#12664) 2021-04-12 13:57:39 +10:00
manager.rb PERF: Improve theme stylesheet compilation performance (#12850) 2021-04-27 14:33:43 +01:00
watcher.rb DEV: ensures stylesheet watcher isn't crashing with gems plugins (#12733) 2021-04-16 15:25:20 +02:00