File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -210,9 +210,10 @@ exports.analyzer = {
210210 name : 'webpack-bundle-analyzer' ,
211211 entry : 'BundleAnalyzerPlugin' ,
212212 args ( ) {
213+ const prefix = this . dll ? 'dll' : this . type ;
213214 return {
214- analyzerPort : this . ssr ? 9998 : 9999 ,
215- statsFilename : this . type ? this . type + '_analyzer_stats.json' : 'analyzer_stats.json'
215+ analyzerPort : this . dll ? 9997 : this . ssr ? 9998 : 9999 ,
216+ statsFilename : prefix ? prefix + '_analyzer_stats.json' : 'analyzer_stats.json'
216217 } ;
217218 }
218219} ;
@@ -221,11 +222,12 @@ exports.stats = {
221222 enable : false ,
222223 name : 'stats-webpack-plugin' ,
223224 args ( ) {
225+ const prefix = this . dll ? 'dll' : this . type ;
224226 const args = [ {
225227 chunkModules : true ,
226228 exclude : [ / n o d e _ m o d u l e s [ \\ \/ ] / ]
227229 } ] ;
228- args . unshift ( this . type ? this . type + '_stats.json' : 'stats.json' ) ;
230+ args . unshift ( prefix ? prefix + '_stats.json' : 'stats.json' ) ;
229231 return args ;
230232 }
231233} ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const Config = require('../config/config');
88class WebpackDllBuilder extends WebpackBaseBuilder {
99 constructor ( config ) {
1010 super ( merge ( { useHost : false , buildDll : true } , config ) ) ;
11+ this . dll = true ;
1112 this . type = WebpackDllBuilder . TYPE ;
1213 this . mergeConfig ( Config . dllConfig ) ;
1314 this . setBuildPath ( this . utils . getDllCompileFileDir ( this . env ) ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " easywebpack" ,
3- "version" : " 4.2.1 " ,
3+ "version" : " 4.2.2 " ,
44 "description" : " 基于 Webpack 的前端构建工程化解决方案" ,
55 "keywords" : [
66 " webpack" ,
You can’t perform that action at this time.
0 commit comments