Skip to content

Commit d561a93

Browse files
wesdunnWes Dunn
andauthored
Add lifecycle hook for 'before:offline:start' (#17)
Currently, the plugin will only get called when using `offline start`. serverless-offline also allows the command `offline` on its own ([link](https://github.com/dherault/serverless-offline/blob/master/src/ServerlessOffline.js#L43)). This commit adds that lifecycle hook to the plugin. Co-authored-by: Wes Dunn <[email protected]>
1 parent 187b28a commit d561a93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class serverlessPluginConditionalFunctions {
2323
this.hooks = {
2424
'before:package:initialize': this.applyConditions.bind(this),
2525
'before:offline:start:init': this.applyConditions.bind(this),
26+
'before:offline:start': this.applyConditions.bind(this),
2627
};
2728
this.pluginName = 'serverless-plugin-conditional-functions';
2829
}

0 commit comments

Comments
 (0)