Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 0803eca

Browse files
fathybdanbucholtz
authored andcommitted
fix(sass): fix .sass files not being watched (#957)
1 parent 370820f commit 0803eca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/watch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ export function runBuildUpdate(context: BuildContext, changedFiles: ChangedFile[
331331
}
332332

333333

334-
const sassFiles = changedFiles.filter(f => f.ext === '.scss');
334+
const sassFiles = changedFiles.filter(f => /^\.s(c|a)ss$/.test(f.ext));
335335
if (sassFiles.length) {
336-
// .scss file was changed/added/deleted, lets do a sass update
336+
// .scss or .sass file was changed/added/deleted, lets do a sass update
337337
context.sassState = BuildState.RequiresUpdate;
338338
}
339339

0 commit comments

Comments
 (0)