Uses decomment to remove comments from JSON, JavaScript, CSS, HTML, etc.
$ npm i gulp-decomment
$ npm test
Testing with coverage:
$ npm run coverage
const gulp = require('gulp');
const decomment = require('gulp-decomment');
gulp.task('default', () =>
gulp.src('input.js')
.pipe(decomment({trim: true}))
.pipe(gulp.dest('dest'))
);
Available methods, according to decomment API:
Copyright © 2021 Vitaly Tomilov; Released under the MIT license.