Is there a basic HTML scripts bundle for VS code and none serve application?
-
I have the brilliant idea that I want to write a html/js/css webpage from scratch. My current issue is with bundling, or for development unbundled auto added files. Is there a way that on the HTML that the script tag for external .js files could be written once?
Using VS Code with Live Preview extension. Are the "best" options going to be use node/php/aspnet? With asp.net applications I am familiar with and would love something similar like the bundling functionality. If in debug - then each file of the bundle is included as individual script links, allowing for debugging. Then switch to prod, and becomes 1 file. But the bundler also allows for wildcards, making any new files created added into the bundle.
-
I have the brilliant idea that I want to write a html/js/css webpage from scratch. My current issue is with bundling, or for development unbundled auto added files. Is there a way that on the HTML that the script tag for external .js files could be written once?
Using VS Code with Live Preview extension. Are the "best" options going to be use node/php/aspnet? With asp.net applications I am familiar with and would love something similar like the bundling functionality. If in debug - then each file of the bundle is included as individual script links, allowing for debugging. Then switch to prod, and becomes 1 file. But the bundler also allows for wildcards, making any new files created added into the bundle.
What about bundling your external JavaScript files into one file, using a bundling tool (like webpack) and, write one script tag for the bundled file?
-
I have the brilliant idea that I want to write a html/js/css webpage from scratch. My current issue is with bundling, or for development unbundled auto added files. Is there a way that on the HTML that the script tag for external .js files could be written once?
Using VS Code with Live Preview extension. Are the "best" options going to be use node/php/aspnet? With asp.net applications I am familiar with and would love something similar like the bundling functionality. If in debug - then each file of the bundle is included as individual script links, allowing for debugging. Then switch to prod, and becomes 1 file. But the bundler also allows for wildcards, making any new files created added into the bundle.
You should read @Marc-Clifton's excellent article: Web Frameworks - A Solution Looking for a Problem?[^].