Skip to content

Commit

Permalink
ui: Hot reload scss from plugins
Browse files Browse the repository at this point in the history
Change-Id: I114c5c0a8b4f45cc55fd3f5976e1433213abbe19
  • Loading branch information
stevegolton committed Dec 24, 2024
1 parent 04f0280 commit f8c66a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const RULES = [
{r: /ui\/src\/assets\/((.*)[.]png)/, f: copyAssets},
{r: /buildtools\/typefaces\/(.+[.]woff2)/, f: copyAssets},
{r: /buildtools\/catapult_trace_viewer\/(.+(js|html))/, f: copyAssets},
{r: /ui\/src\/assets\/.+[.]scss/, f: compileScss},
{r: /ui\/src\/assets\/.+[.]scss|ui\/src\/(?:plugins|core_plugins)\/.+\/styles[.]scss/, f: compileScss},
{r: /ui\/src\/chrome_extension\/.*/, f: copyExtensionAssets},
{r: /.*\/dist\/.+\/(?!manifest\.json).*/, f: genServiceWorkerManifestJson},
{r: /.*\/dist\/.*[.](js|html|css|wasm)$/, f: notifyLiveServer},
Expand Down Expand Up @@ -251,6 +251,8 @@ async function main() {
generateImports('ui/src/core_plugins', 'all_core_plugins');
generateImports('ui/src/plugins', 'all_plugins');
scanDir('ui/src/assets');
scanDir('ui/src/plugins', /styles[.]scss$/);
scanDir('ui/src/core_plugins', /styles[.]scss$/);
scanDir('ui/src/chrome_extension');
scanDir('buildtools/typefaces');
scanDir('buildtools/catapult_trace_viewer');
Expand Down

0 comments on commit f8c66a8

Please sign in to comment.