File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,10 @@ var OfflinePlugin = (function () {
225225 data [ key ] = tool . getConfig ( _this2 ) ;
226226 } ) ;
227227
228- result . loaders . push ( _path3 [ 'default' ] . join ( __dirname , 'misc/runtime-loader.js' ) + '?' + JSON . stringify ( data ) ) ;
228+ result . loaders . push ( {
229+ loader : _path3 [ 'default' ] . join ( __dirname , 'misc/runtime-loader.js' ) ,
230+ options : JSON . stringify ( data )
231+ } ) ;
229232
230233 callback ( null , result ) ;
231234 } ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module.exports = function () {};
1212module . exports . pitch = function pitch ( remainingRequest , precedingRequest , data ) {
1313 var _this = this ;
1414
15- this . cacheable && this . cacheable ( ) ;
15+ this . cacheable && this . cacheable ( ) ; ;
1616
1717 var callback = this . async ( ) ;
1818 var templatePath = path . join ( __dirname , 'sw-template.js' ) ;
Original file line number Diff line number Diff line change @@ -221,10 +221,10 @@ export default class OfflinePlugin {
221221 data [ key ] = tool . getConfig ( this ) ;
222222 } ) ;
223223
224- result . loaders . push (
225- path . join ( __dirname , 'misc/runtime-loader.js' ) +
226- '?' + JSON . stringify ( data )
227- ) ;
224+ result . loaders . push ( {
225+ loader : path . join ( __dirname , 'misc/runtime-loader.js' ) ,
226+ options : JSON . stringify ( data )
227+ } ) ;
228228
229229 callback ( null , result ) ;
230230 } ;
You can’t perform that action at this time.
0 commit comments