Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Be more strict with shouldExtract and wasExtracted check
Browse files Browse the repository at this point in the history
  • Loading branch information
kostasmanionis committed Aug 16, 2017
1 parent 6a660f3 commit 2d799de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -149,7 +149,7 @@ class ExtractTextPlugin {
let meta = module[NS];
if (meta && (!meta.options.id || meta.options.id === id)) {
const wasExtracted = Array.isArray(meta.content);
if (shouldExtract !== wasExtracted) {
if (shouldExtract && !wasExtracted) {
module[`${NS}/extract`] = shouldExtract; // eslint-disable-line no-path-concat
compilation.rebuildModule(module, (err) => {
if (err) {
Expand Down

0 comments on commit 2d799de

Please sign in to comment.