File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ module.exports.pitch = function(request) {
17
17
var callback = this . async ( ) ;
18
18
19
19
var options = loaderUtils . getOptions ( this ) || { } ;
20
- var filename = options . name || path . basename ( this . resourcePath ) ;
20
+ var context = options . context || this . rootContext ;
21
+ var name = options . name || path . basename ( this . resourcePath ) ;
22
+ var filename = loaderUtils . interpolateName ( this , name , { context : context } ) ;
21
23
var outputDir = options . path || '.' ;
22
24
var plugins = options . plugins || [ ] ;
23
25
if ( options . inert ) {
Original file line number Diff line number Diff line change 24
24
},
25
25
"dependencies" : {
26
26
"inert-entry-webpack-plugin" : " ^4.0.0" ,
27
- "loader-utils" : " ^1.1 .0"
27
+ "loader-utils" : " ^2.0 .0"
28
28
},
29
29
"devDependencies" : {
30
30
"ava" : " ^2.4.0" ,
You can’t perform that action at this time.
0 commit comments