This PR contains an example of how to use NPM. I've replaced some dependencies loaded via a CDN with self-hosted version installed with NPM + add documentation.
Pro's
learning how modern software development works using NPM
Con's
CDN is better performance wise, because of caching
The next step would be to concatenate and minify all JavaScript-files into vendor.min.js (dependencies, don't change often) and app.min.js (minified code of all your application js-files into one file).
This PR contains an example of how to use NPM. I've replaced some dependencies loaded via a CDN with self-hosted version installed with NPM + add documentation.
Pro's
Con's
The next step would be to concatenate and minify all JavaScript-files into
vendor.min.js
(dependencies, don't change often) andapp.min.js
(minified code of all your application js-files into one file)./cc @BRUL @nielsevenepoel