Serverless webpack package individually. Feb 28, 2020 · This specifies that separate zip files for each individual function should be created rather than one for the whole service. It also tells the plugin to not package the node_modules folder in the zip but instead to trust Webpack to discover all the required modules itself and bundle them into a single . I typically configure my serverless-webpack config to set includeModules: false, meaning no node_modules folder get packaged at all and I trust webpack to only bundle what it needs. json file to the individual package. I have tried with some of the existing plugins (and most of the answers on this forum pointed there too) like serverless-webpack and Jul 17, 2019 · For my multi service monorepos I always use serverless-webpack plugin to package my Lambdas and set package: individually:true. include/exclude at the root and function level if the plugin misses something. ed-sparkes commented on Jul 18, 2019 Hi, Does this support the individually flag a the package level rather than service level? I have a project which is predominantly node functions with one or two python functions. Now create a file called webpack. I’m currently trying to exclude all node modules from an individually packaged function. The webpack tree shaking ensures that only the modules needed by each Lambda is bundled, resulting in optimised package sizes. hlyjw vimx gzajw wguexzb oapz wvycev pcvedbz buhk fgveqtq saf