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

Commit

Permalink
fix(sass): fix .sass files not being watched (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
fathyb authored and danbucholtz committed Jun 21, 2017
1 parent 370820f commit 0803eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ export function runBuildUpdate(context: BuildContext, changedFiles: ChangedFile[
}


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

Expand Down

0 comments on commit 0803eca

Please sign in to comment.