Reputation: 3726
I have multiple external javascript files and I want to link some file to another files. For example: I want to link variable.js file to main.js file and main.js to config.js file etc In config.js file I also want to link jquery and some other 3rd party js files. I know in html page I can link the files one after the other but there are lot of flies and it's looking bad so I want to put the links inside external js files. Is there anyway to do that?
Upvotes: 0
Views: 131
Reputation: 101
You could use webpack. Look at there https://webpack.js.org/ . Or search in youtube some lessons. It's a module bundler, help you to use ES6 features. One of them are import and export commands, which including external files from one to other
Upvotes: 1