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

Commit 752bbf4

Browse files
committed
fixed issues with PR
1 parent 257d8c9 commit 752bbf4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ ExtractTextPlugin.loader = function(options) {
129129
ExtractTextPlugin.extract = function(before, loader, options) {
130130
if(typeof loader === "string" || Array.isArray(loader)) {
131131
if(typeof before === "string") {
132-
before = before.split("!")
132+
before = before.split("!");
133133
}
134134
return [
135135
ExtractTextPlugin.loader(mergeOptions({omit: before.length, extract: true, remove: true}, options))
@@ -138,7 +138,7 @@ ExtractTextPlugin.extract = function(before, loader, options) {
138138
options = loader;
139139
loader = before;
140140
return [
141-
ExtractTextPlugin.loader(mergeOptions({remove: true}, options)),
141+
ExtractTextPlugin.loader(mergeOptions({remove: true}, options))
142142
].concat(loader).join("!");
143143
}
144144
};
@@ -163,16 +163,16 @@ ExtractTextPlugin.prototype.loader = function(options) {
163163
ExtractTextPlugin.prototype.extract = function(before, loader, options) {
164164
if(typeof loader === "string" || Array.isArray(loader)) {
165165
if(typeof before === "string") {
166-
before = before.split("!")
166+
before = before.split("!");
167167
}
168168
return [
169-
ExtractTextPlugin.loader(mergeOptions({omit: before.length, extract: true, remove: true}, options))
169+
this.loader(mergeOptions({omit: before.length, extract: true, remove: true}, options))
170170
].concat(before, loader).join("!");
171171
} else {
172172
options = loader;
173173
loader = before;
174174
return [
175-
ExtractTextPlugin.loader(mergeOptions({remove: true}, options)),
175+
this.loader(mergeOptions({remove: true}, options))
176176
].concat(loader).join("!");
177177
}
178178
};

0 commit comments

Comments
 (0)