2
To explain my question I will use jquery as an example. I installed jquery from npm (npm install jquery). Then npm created the jquery dist node_modules folder where the jquery file I need is (jquery.js).
To use this file should I point to this node folder? In other words, if my project folder is at the same level as the node_modules folder I should do this to use my js?:
<script src="../node_modules/jquery/dist/jquery.js">
I created a . js file both in my project folder and in the same level folder of the node_modules folder and tried to import it like this:
var $ = require('jquery')
but it doesn’t work. What would be the right way to do it?
Sergio, I even looked for something related to my question but I didn’t find it. Anyway thank you, this other question answered my.,
– Felipe Coelho