JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1117
  • Score
    100M100P100Q113079F
  • License MIT

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

Package Exports

  • gulp-decomment

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-decomment) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-decomment

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

Build Status Coverage Status

Installing

$ npm install gulp-decomment

Testing

$ npm test

Testing with coverage:

$ npm run coverage

Usage

var gulp = require('gulp');
var decomment = require('gulp-decomment');

gulp.task('default', function () {
  return 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 © 2016 Vitaly Tomilov; Released under the MIT license.