CSS Module Builder
Eliminates boilerplate required to lint, compiles, prefix, and minify LESS files.
Provided Tasks
# Lints, compiles, prefixes, and minifies LESS files and puts the artifacts in the ./build folder gulp bpcss:build # Watches source files and rebuilds when they are modified gulp bpcss:dev
Use
Execute npm install --save-dev gulp boilerplate-gulp-css
, then modify your Gulpfile.js
like so (or create one):
var gulp = bpcss = ; ; // Rest of your gulp file, potentially overwriting the boilerplate-gulp tasks...
Capabilities
- Compiles LESS files into a single file. Produces both an unminified version and a minified version with source maps.
- Automatically prefixes CSS as nescessary (autoprefixer)
- Optimizes and minifies CSS (csso)
- Lints CSS (recess)