I’m learning the framework using the tutorial from https://serverless-stack.com/
I have a question on invoking functions locally.
When i invoke a function, the .webpack folder get’s overwritten, the code for other functions get deleted within the .webpack folder and only the files of the function i invoked get’s stored in that folder.
Example:
sls invoke local -f getAllNotes --path ./mocks/listnotes-event.json
When i run the above command,
the following files get deleted:
create.js
create.map.js
and is replaced with:
list.js
list.map.js
Is this expected behaviour?
Also is it a good practice to commit the .webpack folder and it’s contents in the source code repository?
Thank you for all the help.