Skip to content

Commit

Permalink
serverless-heaven#315 - Add watch-compile event for more fine grain e…
Browse files Browse the repository at this point in the history
…vent control while doing local development
  • Loading branch information
dwelch2344 committed Feb 5, 2018
1 parent 66febb2 commit 97666b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ class ServerlessWebpack {
'compile',
],
},
"watch-compile": {
type: 'entrypoint',
lifecycleEvents: [
'watch-compile',
],
},
package: {
type: 'entrypoint',
lifecycleEvents: [
Expand Down
2 changes: 2 additions & 0 deletions lib/wpwatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ module.exports = {
if (firstRun) {
firstRun = false;
callback();
}else{
this.serverless.pluginManager.spawn('webpack:watch-compile')
}
});
};
Expand Down

0 comments on commit 97666b3

Please sign in to comment.