I'm finding it challenging to understand how npm handles dependencies when it comes to referencing them in HTML.
For example, if I have a specific version of a plugin installed that includes the version number in its path or file name, and npm is set to update to a new minor release, the files referenced via script tags may no longer be available.
I've learned that exposing the node_modules path is considered incorrect and should be avoided.
So, how should these files be referenced in order to ensure they are loaded correctly and so that version updates do not break the site?