gulp-css-whitespace

0.1.2 • Public • Published

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'));

Package Sidebar

Install

npm i gulp-css-whitespace

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • rschmukler