node-lambda-babel-template icon indicating copy to clipboard operation
node-lambda-babel-template copied to clipboard

Suggestions for configuration with multiple functions

Open brettstack opened this issue 9 years ago • 1 comments

Hi, great setup. How would you go about setting this up so that you have multiple lambda functions in the one project? For example, currently the npm scripts are hardcoded with dist/index.default, and there is no simple way of adding args to the middle of these commands that I am aware of.

brettstack avatar Jul 22 '16 05:07 brettstack

Sorry to leave this open so long! I'm not sure how to go about making this possible. You'd have to be able to tell Webpack what the entry point is (which currently uses package.json's main), as well as updating the output and passing that to node-lambda.

It's interesting question though, so I'll try to work something out (or if you want to take a stab at it I'll gladly accept a PR).

flesch avatar Aug 26 '16 02:08 flesch