NPM package to build node.js AWS lambda functions.
yarn install @mietz-gmbh/lambda-build-js
yarn build-lambda [function_name] [--logging] [--watch] [--loggingLevel=[debug|info|warn|error]]
flag | default | description |
---|---|---|
--logging |
false |
enable logging |
--watch |
false |
enable watch mode |
--loggingLevel |
debug |
sets the logging levelyou must enable logging for this option to work!valid values are: debug info warn error
|
--minimizeOff |
false |
disable minimization of the output bundle |
Create a file called lambda-build.config.js
with a default export (module.exports
).
You can specify webpacks alias
and externals
.
module.exports = {
alias: {
pg: 'pg.js'
},
externals: [
'aws-sdk',
]
}