Strip comments from JSON with strip-json-comments
Lets you use comments in your JSON files!
$ npm install --save-dev gulp-strip-json-comments
const gulp = require('gulp');
const stripJsonComments = require('gulp-strip-json-comments');
exports.default = () => (
gulp.src('src/config.json')
.pipe(stripJsonComments())
.pipe(gulp.dest('dist'))
);
Type: object
See the strip-json-comments
options.