Skip to content

Commit d392a8d

Browse files
crisbetojelbourn
authored andcommitted
build: material sources not being watched when developing locally (#12472)
Fixes the Material sources not being rebuilt on changes due to an incorrect pattern.
1 parent e273a7a commit d392a8d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tools/gulp/tasks/development.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,14 @@ task('stage-deploy:devapp', ['build:devapp'], () => {
9797
task('deploy:devapp', ['stage-deploy:devapp'], () => {
9898
return firebaseTools.deploy({cwd: projectDir, only: 'hosting'})
9999
// Firebase tools opens a persistent websocket connection and the process will never exit.
100-
.then(() => { console.log('Successfully deployed the demo-app to firebase'); process.exit(0); })
101-
.catch((err: any) => { console.log(err); process.exit(1); });
100+
.then(() => {
101+
console.log('Successfully deployed the demo-app to firebase');
102+
process.exit(0);
103+
})
104+
.catch((err: any) => {
105+
console.log(err);
106+
process.exit(1);
107+
});
102108
});
103109

104110
/*
@@ -119,7 +125,7 @@ task(':watch:devapp', () => {
119125
watchFiles(join(cdkPackage.sourceDir, '**/*'), ['cdk:build-no-bundles']);
120126

121127
// Material package watchers.
122-
watchFiles(join(materialPackage.sourceDir, '**/!(*-theme).scss'), ['material:build-no-bundles']);
128+
watchFiles(join(materialPackage.sourceDir, '**/!(*-theme.scss)'), ['material:build-no-bundles']);
123129
watchFiles(join(materialPackage.sourceDir, '**/*-theme.scss'), [':build:devapp:scss']);
124130

125131
// Moment adapter package watchers

0 commit comments

Comments
 (0)