# Webtask: wt --bundle without node\_modules?

**URL:** <https://community.auth0.com/t/webtask-wt-bundle-without-node-modules/8856>\
**Category:** Get Help\
**Tags:** bundle, webtask\
**Created:** [November 30, 2017, 6:34am UTC](https://community.auth0.com/t/webtask-wt-bundle-without-node-modules/8856 "2017-11-30T06:34:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dolan\_miu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dolan_miu/32/7470_2.png) [@dolan\_miu](https://community.auth0.com/u/dolan_miu)\
**Post date:** [November 30, 2017, 6:34am UTC](https://community.auth0.com/t/webtask-wt-bundle-without-node-modules/8856/1 "2017-11-30T06:34:05Z")

</div>

I would like to create a multi-file webtask. I use wt —bundle to create a single file for WebTasks.

However, this bundles the node\_modules as well for some reason, which increases the size to over 100kb.

Is there a way to prevent this behaviour?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [November 30, 2017, 7:10pm UTC](https://community.auth0.com/t/webtask-wt-bundle-without-node-modules/8856/2 "2017-11-30T19:10:35Z")

</div>

I might be missing something, but I just used the latest version of wt-cli (8.2.0) to create a webtask that is composed of multiple files using:

```
wt create -b multiple.js

```

In addition, there was a `package.json` file containing the external dependencies that that were required and the command completed successfully informing me that the dependencies were being provisioned.

In conclusion, based on ([https://webtask.io/docs/modules](https://webtask.io/docs/modules)) the dependencies will be installed and not bundled.

---

<div class="post-metadata">

**Author:** ![dolan\_miu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dolan_miu/32/7470_2.png) [@dolan\_miu](https://community.auth0.com/u/dolan_miu)\
**Post date:** [December 5, 2017, 5:13am UTC](https://community.auth0.com/t/webtask-wt-bundle-without-node-modules/8856/3 "2017-12-05T05:13:51Z")

</div>

Thanks! It worked.  
My problem was because my package.json was outside. My JS files are in a folder called `dist`. So first, I had to copy package.json into the `dist` folder, and then build the `dist` folder.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/webtask-wt-bundle-without-node-modules/8856/4 "2018-03-02T05:57:35Z")

</div>


