@cjser/gulp-strip-json-comments
v5.0.0-cjser.2
Published
Strip comments from JSON. Lets you use comments in your JSON files!
Maintainers
Readme
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-commentsUsage
import gulp from 'gulp';
import stripJsonComments from 'gulp-strip-json-comments';
export default () => (
gulp.src('src/config.json')
.pipe(stripJsonComments())
.pipe(gulp.dest('dist'))
);API
stripJsonComments(options?)
options
Type: object
See the strip-json-comments options.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/gulp-strip-json-comments
