diff --git a/index.js b/index.js index 240f2ebf7..cbc0dc718 100644 --- a/index.js +++ b/index.js @@ -99,6 +99,11 @@ class ServerlessWebpack { 'after:deploy:createDeploymentArtifacts': () => BbPromise.bind(this) .then(this.cleanup), + 'before:deploy:function:packageFunction': () => BbPromise.bind(this) + .then(this.validate) + .then(this.compile) + .then(this.packExternalModules), + 'webpack:validate': () => BbPromise.bind(this) .then(this.validate),