serverless-bundle icon indicating copy to clipboard operation
serverless-bundle copied to clipboard

How to keep .webpack folder after deploy. Need a way to pass keepOutputDirectory: true

Open s1mrankaur opened this issue 3 years ago • 4 comments

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 avatar Feb 28 '21 18:02 s1mrankaur

@s1mrankaur, did you find any workaround for this?

Vivek205 avatar May 24 '21 13:05 Vivek205

@Vivek205 Go to node_modules→ serverless_webpack→ lib→ Configurations.js→ SET keepOutputDirectory: true,

s1mrankaur avatar May 25 '21 17:05 s1mrankaur

Thank you @s1mrankaur

Vivek205 avatar May 26 '21 05:05 Vivek205

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?

webjunkie avatar Dec 17 '21 11:12 webjunkie