From db652775f23aeaba0b62136d30222094aba79bf7 Mon Sep 17 00:00:00 2001 From: Renat Magadiev Date: Sat, 2 Sep 2017 21:20:20 +0200 Subject: [PATCH] fix #422 ignore/exclude from state --- src/utils/getFiles.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/getFiles.js b/src/utils/getFiles.js index 57fadbca..9908ef2c 100644 --- a/src/utils/getFiles.js +++ b/src/utils/getFiles.js @@ -23,7 +23,7 @@ var getFiles = function( dir ) { var excluded = false var relPath = path.relative( dir.replace( '/**/*.styl', '' ), file ) - this.config.exclude.forEach( function( exclude ) { + this.state.exclude.forEach( function( exclude ) { excluded = excluded || exclude.match( relPath ) } ) @@ -41,7 +41,7 @@ var getFiles = function( dir ) { var files = dir.filter( function( filepath ) { var excluded = false - this.config.exclude.forEach( function( exclude ) { + this.state.exclude.forEach( function( exclude ) { excluded = excluded || exclude.match( filepath ) } )