gulp-jsonminify

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-jsonminify
2601.1.05 years ago9 years agoMinified + gzip package size for gulp-jsonminify in KB

Readme

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)