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 committed Jul 13, 2016
1 parent eacea10 commit 7fa3a29
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 @@ -18,7 +18,7 @@ export = function css({ filename = '[name].css', allChunks = false, sourceMap =
sourceMap = true // source maps need to be on for this
}

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 @@ -46,4 +46,4 @@ export = function css({ filename = '[name].css', allChunks = false, sourceMap =
}
return config
}
}
}

0 comments on commit 7fa3a29

Please sign in to comment.