Skip to content

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

Notifications You must be signed in to change notification settings

tcarlsen/gulp-jsonminify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published