# .webpack folder is overwritten - serverless-bundle

**URL:** <https://forum.serverless.com/t/webpack-folder-is-overwritten-serverless-bundle/13919>\
**Category:** Serverless Framework\
**Created:** [February 1, 2021, 1:52pm UTC](https://forum.serverless.com/t/webpack-folder-is-overwritten-serverless-bundle/13919 "2021-02-01T13:52:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennethjaysone](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/kennethjaysone/32/2075_2.png) [@kennethjaysone](https://forum.serverless.com/u/kennethjaysone)\
**Post date:** [February 1, 2021, 1:52pm UTC](https://forum.serverless.com/t/webpack-folder-is-overwritten-serverless-bundle/13919/1 "2021-02-01T13:52:41Z")

</div>

I’m learning the framework using the tutorial from [https://serverless-stack.com/](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.
