File tree Expand file tree Collapse file tree 3 files changed +3
-29
lines changed Expand file tree Collapse file tree 3 files changed +3
-29
lines changed Original file line number Diff line number Diff line change 44
44
"style-loader" : " ^0.23.0" ,
45
45
"uglifyjs-webpack-plugin" : " ^2.0.1" ,
46
46
"webpack" : " ^4.20.2" ,
47
- "webpack-dashboard" : " ^2.0.0" ,
48
47
"webpack-dev-middleware" : " ^3.4.0" ,
49
48
"webpack-hot-middleware" : " ^2.24.0" ,
50
49
"webpack-merge" : " ^4.1.4"
Original file line number Diff line number Diff line change @@ -87,12 +87,6 @@ program
87
87
signale . star ( 'To spread the β€οΈ please tweet.' ) ;
88
88
process . exit ( 0 ) ;
89
89
} ) ;
90
- process . on ( 'SIGKILL' , ( ) => {
91
- server . stop ( ) ;
92
- } ) ;
93
- process . on ( 'SIGTERM' , ( ) => {
94
- server . stop ( ) ;
95
- } ) ;
96
90
} catch ( e ) {
97
91
signale . error (
98
92
'Could not start development server. Please check the log below.'
@@ -263,21 +257,3 @@ function getProjectAndServerConfig(
263
257
264
258
return { projectConfig , serverConfig , projectConfigPath , serverConfigPath } ;
265
259
}
266
-
267
- // Error out on force close
268
- process . on ( 'SIGKILL' , ( ) => {
269
- signale . fatal (
270
- 'The operation failed because the process exited too early. ' +
271
- 'This probably means the system ran out of memory or someone called ' +
272
- '`kill -9` on the process.'
273
- ) ;
274
- process . exit ( 1 ) ;
275
- } ) ;
276
- process . on ( 'SIGTERM' , ( ) => {
277
- signale . fatal (
278
- 'The operation failed because the process exited too early. ' +
279
- 'Someone might have called `kill` or `killall`, or the system could ' +
280
- 'be shutting down.'
281
- ) ;
282
- process . exit ( 1 ) ;
283
- } ) ;
Original file line number Diff line number Diff line change 1
1
import browserSync from 'browser-sync' ;
2
2
import webpack from 'webpack' ;
3
- import DashboardPlugin from 'webpack-dashboard/plugin' ;
4
3
import webpackDevMiddleware from 'webpack-dev-middleware' ;
5
4
import webpackHotMiddleware from 'webpack-hot-middleware' ;
6
5
@@ -48,8 +47,8 @@ export class Server {
48
47
'Can not serve while the server is already running.'
49
48
) ;
50
49
}
51
- // Init browserSync
52
- const bs = browserSync . init ( ) ;
50
+ // Create browserSync Instance
51
+ const bs = browserSync . create ( ) ;
53
52
// Create configuration
54
53
const webpackConfig = new CreateWebpackConfig (
55
54
this . projectConfig ,
@@ -89,7 +88,7 @@ export class Server {
89
88
} ) ;
90
89
} else {
91
90
const compiler = webpack ( webpackConfig ) ;
92
- compiler . apply ( new DashboardPlugin ( ) ) ;
91
+ // compiler.apply(new DashboardPlugin());
93
92
const devMiddleware = webpackDevMiddleware ( compiler , {
94
93
stats : { colors : true } ,
95
94
publicPath :
You canβt perform that action at this time.
0 commit comments