0.1.2 • Published 10 years ago

gulp-css-whitespace v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

gulp-css-whitespace

Gulp plugin for css-whitespace.

Example

  var gulp = require('gulp'),
      whitespace = require('gulp-css-whitespace');

  gulp.task('whitespace', function() {
    return gulp.src('./src/whitespace.styl')
            .pipe(whitespace())
            .pipe(gulp.dest('build'));
  });

  gulp.task('default', function() {
    gulp.run('whitespace');
  });

Options

replaceExtension (file)

Replaces the extension of the file in question. For example, convertig styl to css.

return gulp.src('./src/whitespace.styl')
        .pipe(whitespace({replaceExtension: '.css'}))
        .pipe(gulp.dest('build'));