I have created a robust library that I want to integrate into a different web project. This library handles all its dependencies and consists of js, css, and html files.
My ideal scenario would be to package it as an npm module and simply use import
to include it in a Front End project. However, based on information from this source, this method is not universally supported by all browsers. I need decent support across Chrome, Safari, Firefox, and IE.
I also do not want to rely on external module loaders. I prefer a straightforward download, include, and GO approach.
Downloading a folder of the library and then referencing the entry point file with a script tag feels cumbersome.
How should I proceed with integrating my library?