File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 133
133
"style-loader" : " ^0.13.0" ,
134
134
"watch" : " ^0.18.0" ,
135
135
"webpack" : " ^1.9.6" ,
136
+ "webpack-dashboard" : " 0.0.1" ,
136
137
"webpack-dev-server" : " ^1.14.0"
137
138
},
138
139
"dependencies" : {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const autoprefixer = require('autoprefixer')
3
3
const path = require ( 'path' )
4
4
const webpack = require ( 'webpack' )
5
5
6
- module . exports = {
6
+ const config = {
7
7
devtool : 'eval' ,
8
8
entry : {
9
9
demo : './source/demo/Application'
@@ -45,6 +45,19 @@ module.exports = {
45
45
} ,
46
46
devServer : {
47
47
contentBase : 'build' ,
48
- port : 3001
48
+ port : 3001 ,
49
+ quiet : true
49
50
}
50
51
}
52
+
53
+ if ( process . env . NODE_ENV === 'development' ) {
54
+ const Dashboard = require ( 'webpack-dashboard' )
55
+ const DashboardPlugin = require ( 'webpack-dashboard/plugin' )
56
+ const dashboard = new Dashboard ( )
57
+
58
+ config . plugins . push (
59
+ new DashboardPlugin ( dashboard . setData )
60
+ )
61
+ }
62
+
63
+ module . exports = config
You can’t perform that action at this time.
0 commit comments