I have been struggling to get webpack ES6 Babel working properly for multiple functions on Serverless Framework. I’d like to separate my functions out in different folders and have them all as part of a single project. I’ve tried using a single webpack.config.js in the root folder and using Include/Exclude on my Serverless.yml but no luck. An identical zip file is created for each function and their contents have all functions instead of only the one specified on my handler property. Any help/examples of folder/file structure would be much appreciated. I am using the serverless-webpack plugin. Cheers
The plugin doesn’t support that feature yet. They are working on it though.
https://github.com/elastic-coders/serverless-webpack/issues/107
And…
https://github.com/elastic-coders/serverless-webpack/issues/120