Skip to content

Commit

Permalink
fix(index): wrong boolean for CSS extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani authored Jul 13, 2016
1 parent 52684a0 commit 1468998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export = function less({ filename = '[name].css', allChunks = false, sourceMap =

loaders.push(`less${sourceMap ? '?sourceMap' : ''}`)

const extractCss = extractText === false
const extractCss = extractText !== false
const providedInstance = extractText instanceof ExtractTextPlugin
if (!providedInstance)
extractText = extractCss ? new ExtractTextPlugin(filename, extractText instanceof Object ? extractText : { allChunks, sourceMap }) : null
Expand Down Expand Up @@ -48,4 +48,4 @@ export = function less({ filename = '[name].css', allChunks = false, sourceMap =
}
return config
}
}
}

0 comments on commit 1468998

Please sign in to comment.