Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-jsonminify

tcarlsen46.4kMIT1.1.0TypeScript support: definitely-typed

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

gulpplugin, json, minify, jsonminify, gulp

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)