browserify-common-prelude
installation
npm i --save browserify-common-prelude
usage
Better use with factor-bundle (gulp plugin). Best thing of it is that let you add async defer
attributes to script tags and prevent block HTML downloading.
// build.js// ...var bcp = fs;; ; external'jquery' 'bluebird'; external'jquery' 'bluebird' 'chart.js' 'moment';
<!-- a.html - only one common lib, data-common attribute could be omitted -->
<!-- b.html - script tags with data-common attribute must be one after another, no other tags in between -->