serverless-bundle
serverless-bundle copied to clipboard
How to keep .webpack folder after deploy. Need a way to pass keepOutputDirectory: true
The project is all setup using serverless bundle but not having this option is a bummer. I need this to be able to debug lambda functions using Thundra. My code is written using Typescript so need the debugger to point to .js and .jsmap files. Please suggest a way to keep .webpack folder.
@s1mrankaur, did you find any workaround for this?
@Vivek205 Go to node_modules→ serverless_webpack→ lib→ Configurations.js→ SET keepOutputDirectory: true,
Thank you @s1mrankaur
If you look at https://github.com/AnomalyInnovations/serverless-bundle/blob/master/index.js#L39 you will see that keepOutputDirectory
is set by generateStatsFiles
. Might that help?