0.2.2 • Published 5 years ago
gulp-decomment v0.2.2
gulp-decomment
Uses decomment to remove comments from JSON, JavaScript, CSS, HTML, etc.
Installing
$ npm i gulp-decommentTesting
$ npm testTesting with coverage:
$ npm run coverageUsage
const gulp = require('gulp');
const decomment = require('gulp-decomment');
gulp.task('default', () =>
gulp.src('input.js')
.pipe(decomment({trim: true}))
.pipe(gulp.dest('dest'))
);API
Available methods, according to decomment API:
- decomment([options])
- decomment.text([options])
- decomment.html([options])
License
Copyright © 2021 Vitaly Tomilov; Released under the MIT license.