Although, I used NPM, but I do not understand how the files in node_modules are added to my index.html and work from there.
For example, if I need to use jQuery, it is that simple. I will get the file via cdn and add index.html to my file
CASE I: CDN
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<html> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> </head> <body> <script> $(document).ready(function(){ $('body').css('background','red'); }); </script> </body> </html>
Now I am not adding cdns, but now I will include jQuery from NPM. I will create a package.json file and then add jQuery by going to the appropriate folder and typing:
CASE II: NPM folder - node_module
Now I have completed the following steps:
Now the folder looks like this: 
Now that I have removed the jQuery cdn link, I donβt know how the "jQuery file" from node_modules will be added to my index.html?
Please someone help. I have no clue ... I am doing this in a browser!
source share