nuǝɯ pǝɥsᴉꞁod mǝu
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

gulp-jsonminify

1.1.0 • Public • Published

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)

install

npm i gulp-jsonminify

Downloadsweekly downloads

7,162

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability