Node.js project | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Node.js project

I have seen a lot of javascript projects like jquery that uses a lot of files, folders, functions and make the project work with import and export, but at the end when we are going to use it's just one big file, how can i make a project with many files to be just one file?

24th Dec 2020, 9:13 PM
<Camilo/>
<Camilo/> - avatar
1 Answer
+ 3
you need a bundler like webpack and others that take an input file and depending on the import statements into your file they add all the code from other files to a single file which is the output file ,basics of webpack is easy to understand and implement ,I can't route you to a specific article but there are many online ,just go through one of them and if you don't understand anything you can always ask here ,
24th Dec 2020, 11:18 PM
Abhay
Abhay - avatar