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

Commit 2d799de

Browse files
Be more strict with shouldExtract and wasExtracted check
1 parent 6a660f3 commit 2d799de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class ExtractTextPlugin {
149149
let meta = module[NS];
150150
if (meta && (!meta.options.id || meta.options.id === id)) {
151151
const wasExtracted = Array.isArray(meta.content);
152-
if (shouldExtract !== wasExtracted) {
152+
if (shouldExtract && !wasExtracted) {
153153
module[`${NS}/extract`] = shouldExtract; // eslint-disable-line no-path-concat
154154
compilation.rebuildModule(module, (err) => {
155155
if (err) {

0 commit comments

Comments
 (0)