mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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.
This commit is contained in:
committed by
Jeremy Elbourn
parent
0f818fd767
commit
5f1f072d7e
@@ -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, '**/*'),
|
||||
|
||||
Reference in New Issue
Block a user