0.1 #permalink Dependencies

Toggle example guides Toggle HTML markup

Third-party libraries we want to use should be put in the /v2/js/deps folder. This system is somewhat cursory as of 201509 and needs some work. In particular, we should:

  • find a way to document the libraries' functionality, usage, and pages using them
  • define how to upgrade them so we don't end up with tons of copies as every developer adds a new one when it has to be used again (I think browserify and modularization (see below) should help in this regard)
  • minimize the libraries. They're not currently passed through gulp-uglify.
  • (perhaps) concatenate them. For the libraries used on every page (jquery, handlebars), concatenating them would save requests and may result in some gzip benefit
Source: styleguide/styleguide.less, line 9