gulp-css-whitespace

Converts white-space significant CSS to normal CSS

Usage no npm install needed!

<script type="module">
  import gulpCssWhitespace from 'https://cdn.skypack.dev/gulp-css-whitespace';
</script>

README

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