This is an example gulpFile
that can be used to minify and concat all bower components marked as dependencies. Also includes the bower.json and package.json files for the project.
The 'vendors' task will extract all bower components, using main-bower-files
, but replaces any files that have a matching .min file that exists. Any unminified files are then minified using Uglify, and then all files are concatenated into a single vendors.js
file.
The bower.json deliberately includes the SizzleStats dependency, as this component doesn't include a minified file.