To explain my question I will use jquery as an example. I installed jquery from npm (npm install jquery). Then npm created the folder node_modules \ jquery \ dist where is the jquery file that I need (jquery.js).
To use this file should I point to this node_modules folder? That is, if the folder of my project is at the same level as the folder node_modules should I do this to use my js?:
<script src="../node_modules/jquery/dist/jquery.js">
I created an .js file in both the folder of my project and the same folder in the folder node_modules and tried to import it as follows:
var $ = require('jquery')
but it does not work. What would be the right way to do this?