diff --git a/tools/gulp/tasks/development.ts b/tools/gulp/tasks/development.ts index a4d23a002f2..883e8a7f8e2 100644 --- a/tools/gulp/tasks/development.ts +++ b/tools/gulp/tasks/development.ts @@ -133,9 +133,15 @@ task(':watch:devapp', () => { // CDK package watchers. watchFiles(join(cdkPackage.sourceDir, '**/*'), ['cdk:build-no-bundles']); + const materialCoreThemingGlob = join(materialPackage.sourceDir, '**/core/theming/**/*.scss'); + // Material package watchers. - watchFiles(join(materialPackage.sourceDir, '**/!(*-theme.scss)'), ['material:build-no-bundles']); - watchFiles(join(materialPackage.sourceDir, '**/*-theme.scss'), [':build:devapp:scss']); + watchFiles([ + join(materialPackage.sourceDir, '**/!(*-theme.scss)'), `!${materialCoreThemingGlob}` + ], ['material:build-no-bundles']); + watchFiles([ + join(materialPackage.sourceDir, '**/*-theme.scss'), materialCoreThemingGlob + ], [':build:devapp:scss']); // Moment adapter package watchers watchFiles(join(momentAdapterPackage.sourceDir, '**/*'),