Skip to content

🍸 Removes comments from JSON, JavaScript, CSS, HTML, etc.

Notifications You must be signed in to change notification settings

vitaly-t/gulp-decomment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-decomment

Uses decomment to remove comments from JSON, JavaScript, CSS, HTML, etc.

Build Status Coverage Status

Installing

$ npm i gulp-decomment

Testing

$ npm test

Testing with coverage:

$ npm run coverage

Usage

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:

License

Copyright © 2021 Vitaly Tomilov; Released under the MIT license.