I have a site with multiple js and css files. Would installing npm for this site cause any potential problems or conflicts between my js files? As far as namespace goes, a lot of my files are wrapped like this:var Blog = (function() { function init(){ ... } return { init: init } })(); and then called from app.js like thisBlog.init(); ...so I'm not polluting the global namespace all that much (or so I think).EDIT: The reason I wanted to add npm is because I want to be able to read in YAML or JSON files.
Submitted December 05, 2018 at 05:13PM by stoned_phillips
No comments:
Post a Comment