This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -47,20 +47,12 @@ module.exports.pitch = function(request) {
47
47
filename : childFilename ,
48
48
publicPath : publicPath
49
49
} ;
50
- var childCompiler = this . _compilation . createChildCompiler ( "extract-text-webpack-plugin" , outputOptions ) ;
50
+ var childCompiler = this . _compilation . createChildCompiler ( "extract-text-webpack-plugin " + NS + " " + request , outputOptions ) ;
51
51
childCompiler . apply ( new NodeTemplatePlugin ( outputOptions ) ) ;
52
52
childCompiler . apply ( new LibraryTemplatePlugin ( null , "commonjs2" ) ) ;
53
53
childCompiler . apply ( new NodeTargetPlugin ( ) ) ;
54
54
childCompiler . apply ( new SingleEntryPlugin ( this . context , "!!" + request ) ) ;
55
55
childCompiler . apply ( new LimitChunkCountPlugin ( { maxChunks : 1 } ) ) ;
56
- var subCache = "subcache " + NS + " " + request ; // eslint-disable-line no-path-concat
57
- childCompiler . plugin ( "compilation" , function ( compilation ) {
58
- if ( compilation . cache ) {
59
- if ( ! compilation . cache [ subCache ] )
60
- compilation . cache [ subCache ] = { } ;
61
- compilation . cache = compilation . cache [ subCache ] ;
62
- }
63
- } ) ;
64
56
// We set loaderContext[NS] = false to indicate we already in
65
57
// a child compiler so we don't spawn another child compilers from there.
66
58
childCompiler . plugin ( "this-compilation" , function ( compilation ) {
You can’t perform that action at this time.
0 commit comments