serverless-webpack
serverless-webpack copied to clipboard
How to set keepOutputDirectory to true when using serverless-bundle plugin
serverless-bundle plugin
does not seem to have an option to override keepOutputDirectory:true. By default it gets removed on sls deploy command.
How can we keep .webpack folder with .js and jsmap files after deployment as we need it to be able to debug remotely using thundra.
and as specified here: https://apm.docs.thundra.io/node.js/online-debugging it asks for the path where js and js and jsmap files are in case using typescript
~~I think this may be what you are looking for?~~ Ignore me... Getting Repos mixed up
https://github.com/serverless-heaven/serverless-webpack#keep-output-directory-after-packaging
Update:
You can use serverless bundle
to do a webpack only. This will generate the .webpack folder and not delete it.
@M1kep Thanks for your response. I am using serverless bundle plugin. But it deletes the .wepack directory by default because the default value for keepOutputDirectory is false by default in serverless-webpack. Any ideas on how that can be changed?
Shouldn't this be created in serverless-bundle
plugin instead?