Node.js project | Sololearn: Learn to code for FREE!

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?

12/24/2020 9:13:03 PM

<Camilo/>

1 Answer

New 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 ,