Skip to content

Commit

Permalink
fix SimenB#422 ignore/exclude from state
Browse files Browse the repository at this point in the history
  • Loading branch information
renat-magadiev committed Sep 2, 2017
1 parent 6fc8f7e commit db65277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/getFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
} )

Expand All @@ -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 )
} )

Expand Down

0 comments on commit db65277

Please sign in to comment.