Open merland opened 7 years ago
Hey,
So there are a few little setup config values you are going to need to set.
In Webpack
target='node'
output: {..., libraryTarget: 'umd'}
In your node-lambda .env/deploy-env
PACKAGE_DIRECTORY=[bundle folder]
AWS_HANDLER=[path to file without file extension].[name of exported function]
This let me run the script for testing. Still have to deploy my script so I'll update if there is anything I missed.
From the readme:
Where can I find more info about how to configure Webpack for use with node-lambda and the
prebuiltDirectory
flag? Simply placing the Webpackbundle.js
in the prebuiltDirectory won't work. Anyone have an example?