📅  最后修改于: 2022-03-11 14:48:33.789000             🧑  作者: Mango
Use a resource bundler like webpack. Webpack will look at all
dependant files starting from your main.js file and bundle and
compress them down into a single small .js file.
This also works for external dependencies (npm).
All you have to do then is to include that single bundle.js file
into the html