Skip to content

Commit 5f1f072

Browse files
devversionjelbourn
authored andcommitted
build: livereload not working for core/theming files (#13275)
Since most of the SCSS files inside of `core/theming` are not suffixed with `-theme.scss`, the livereload will rebuild the Material bundles, but not the theme SCSS files. This causes undesired slow-down and a non-working livereload.
1 parent 0f818fd commit 5f1f072

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tools/gulp/tasks/development.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,15 @@ task(':watch:devapp', () => {
133133
// CDK package watchers.
134134
watchFiles(join(cdkPackage.sourceDir, '**/*'), ['cdk:build-no-bundles']);
135135

136+
const materialCoreThemingGlob = join(materialPackage.sourceDir, '**/core/theming/**/*.scss');
137+
136138
// Material package watchers.
137-
watchFiles(join(materialPackage.sourceDir, '**/!(*-theme.scss)'), ['material:build-no-bundles']);
138-
watchFiles(join(materialPackage.sourceDir, '**/*-theme.scss'), [':build:devapp:scss']);
139+
watchFiles([
140+
join(materialPackage.sourceDir, '**/!(*-theme.scss)'), `!${materialCoreThemingGlob}`
141+
], ['material:build-no-bundles']);
142+
watchFiles([
143+
join(materialPackage.sourceDir, '**/*-theme.scss'), materialCoreThemingGlob
144+
], [':build:devapp:scss']);
139145

140146
// Moment adapter package watchers
141147
watchFiles(join(momentAdapterPackage.sourceDir, '**/*'),

0 commit comments

Comments
 (0)