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