Commit 76e85b2 1 parent f6a9338 commit 76e85b2 Copy full SHA for 76e85b2
File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ node_modules
3
3
.DS_Store
4
4
/app /dist
5
5
/dist
6
+ stats.html
Original file line number Diff line number Diff line change 54
54
"vue-loader" : " ^8.5.3" ,
55
55
"vue-style-loader" : " ^1.0.0" ,
56
56
"webpack" : " ^1.13.1" ,
57
- "webpack-hot-middleware" : " ^2.12.1"
57
+ "webpack-hot-middleware" : " ^2.12.1" ,
58
+ "webpack-visualizer-plugin" : " ^0.1.5"
58
59
},
59
60
"dependencies" : {
60
61
"babel-runtime" : " ^6.9.2" ,
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
const webpack = require ( 'webpack' )
3
+ const Visualizer = require ( 'webpack-visualizer-plugin' )
3
4
const config = require ( './webpack.config' )
4
5
5
6
config . plugins = config . plugins . concat ( [
@@ -14,6 +15,9 @@ config.plugins = config.plugins.concat([
14
15
new webpack . DefinePlugin ( {
15
16
'__DEV__' : false ,
16
17
'process.env.NODE_ENV' : JSON . stringify ( 'production' )
18
+ } ) ,
19
+ new Visualizer ( {
20
+ filename : '../../stats.html'
17
21
} )
18
22
] )
19
23
You can’t perform that action at this time.
0 commit comments