Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 660 Bytes

File metadata and controls

36 lines (22 loc) · 660 Bytes

gulp-strip-json-comments

Strip comments from JSON with strip-json-comments
Lets you use comments in your JSON files!

Install

$ npm install --save-dev gulp-strip-json-comments

Usage

const gulp = require('gulp');
const stripJsonComments = require('gulp-strip-json-comments');

exports.default = () => (
	gulp.src('src/config.json')
		.pipe(stripJsonComments())
		.pipe(gulp.dest('dist'))
);

API

stripJsonComments(options?)

options

Type: object

See the strip-json-comments options.