$ npm install --save-dev gulp-json5-to-json
const gulp = require('gulp');
const json5 = require('gulp-json5-to-json');
gulp.task('default', () => {
return gulp.src('src/**/*.json5')
.pipe(json5({ beautify: true }))
.pipe(gulp.dest('./build'));
});
beautify
- Causes the resulting file to be pretty-printed.