File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -128,12 +128,12 @@ function ExtractTextPlugin(options) {
128128}
129129module . exports = ExtractTextPlugin ;
130130
131- // modified from webpack/lib/LoadersList.js
132- function getLoaderWithQuery ( loader ) {
133- if ( isString ( loader ) ) return loader ;
134- if ( ! loader . query ) return loader . loader ;
135- var query = isString ( loader . query ) ? loader . query : JSON . stringify ( loader . query ) ;
136- return loader . loader + "?" + query ;
131+ function getLoaderWithObject ( loader ) {
132+ if ( isString ( loader ) ) {
133+ return { loader : loader } ;
134+ }
135+
136+ return loader ;
137137}
138138
139139function mergeOptions ( a , b ) {
@@ -198,8 +198,7 @@ ExtractTextPlugin.prototype.extract = function(options) {
198198 delete options . fallbackLoader ;
199199 return [ this . loader ( options ) ]
200200 . concat ( before , loader )
201- . map ( getLoaderWithQuery )
202- . join ( "!" ) ;
201+ . map ( getLoaderWithObject ) ;
203202}
204203
205204ExtractTextPlugin . extract = ExtractTextPlugin . prototype . extract . bind ( ExtractTextPlugin ) ;
You can’t perform that action at this time.
0 commit comments