From 0803ecaeffcb6208410e1deb590c950762749253 Mon Sep 17 00:00:00 2001 From: Fathy Boundjadj Date: Wed, 21 Jun 2017 18:06:28 +0200 Subject: [PATCH] fix(sass): fix .sass files not being watched (#957) --- src/watch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/watch.ts b/src/watch.ts index 0ae0aa3f..4bb2caa0 100644 --- a/src/watch.ts +++ b/src/watch.ts @@ -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; }