This repository was archived by the owner on Jul 9, 2019. It is now read-only.
File tree 2 files changed +10
-11
lines changed
2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 7
7
[ ![ Coverage Status] [ ico-coverage ]] [ link-coverage ]
8
8
[ ![ Contributors] [ ico-contributors ]] [ link-contributors ]
9
9
10
+
11
+ # FORK'S PURPOSE
12
+
13
+ Fixed webpack's watcher restarts after each recompilation.
14
+
15
+ For more info see https://github.com/serverless-heaven/serverless-webpack/issues/465 .
16
+
17
+
18
+ <hr >
10
19
A Serverless v1.x plugin to build your lambda functions with [ Webpack] [ link-webpack ] .
11
20
12
21
This plugin is for you if you want to use the latest Javascript version with [ Babel] [ link-babel ] ;
Original file line number Diff line number Diff line change @@ -66,17 +66,7 @@ module.exports = {
66
66
this . serverless . cli . log ( 'Watching for changes...' ) ;
67
67
callback ( ) ;
68
68
} else {
69
- // We will close the watcher while the compile event is triggered and resume afterwards to prevent race conditions.
70
- watcher . close ( ( ) => {
71
- return this . serverless . pluginManager . spawn ( 'webpack:compile:watch' )
72
- . then ( ( ) => {
73
- // Resume watching after we triggered the compile:watch event
74
- return BbPromise . fromCallback ( cb => {
75
- startWatch ( cb ) ;
76
- } )
77
- . then ( ( ) => this . serverless . cli . log ( 'Watching for changes...' ) ) ;
78
- } ) ;
79
- } ) ;
69
+ this . serverless . cli . log ( 'Watching for changes...' ) ;
80
70
}
81
71
} ) ;
82
72
} ;
You can’t perform that action at this time.
0 commit comments