I am writing code for webtask.io and it seems as if I can only upload one file to run. I would like to organize my code into multiple files with different modules but then have them be compiled into one for upload. I have tried gulp
with gulp-concat
but this just concatenates the files without preserving any execution logic. I would assume there is a simple way to do this.
Asked
Active
Viewed 659 times
0

Zachary Russell Heineman
- 511
- 2
- 17
-
1give webpack a try – Ayush Gupta Jan 25 '18 at 03:42
-
What you're looking for is a bundler. There are several. webpack seems to be the one I see referred to the most here on stack overflow. – jfriend00 Jan 25 '18 at 03:51
-
Thanks, that led me to the answer – Zachary Russell Heineman Jan 25 '18 at 06:22
2 Answers
0
Webpack works well, especially with the webpack-node-externals'
package: https://www.npmjs.com/package/webpack-node-externals.

Zachary Russell Heineman
- 511
- 2
- 17