Gulp wrapper for the LivingCSS Style Guide Generator.
Issues with the output should be reported on the LivingCSS github repo.
$ npm install --save-dev gulp-livingcss
var gulp = require('gulp');
var livingcss = require('gulp-livingcss');
gulp.task('default', function () {
gulp.src('src/styles.css')
.pipe(livingcss('dist'))
.pipe(gulp.dest('dist'))
});
The dest
parameter is used to create the correct relative URLs from the Style Guide to the linked stylesheets. See the LivingCSS dest.
See the LivingCSS options.
streamContext
- If the task should return the context object rather than the generated HTML file.