Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 488 Bytes

readme.md

File metadata and controls

25 lines (17 loc) · 488 Bytes

gulp-jsonminify

Minifies blocks of JSON-like content into valid JSON by removing all whitespace and comments, using JSON.minify.

Installation

npm install gulp-jsonminify --save-dev

Usage

var jsonminify = require('gulp-jsonminify');

gulp.task('minify', function () {
    return gulp.src(['path/to/files/*.json'])
        .pipe(jsonminify())
        .pipe(gulp.dest('dist'));
});

LICENSE

(MIT License)