@cdztt/gulp-trimcomments
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Remove comments from the .js or .json file

  1. npm i -D @cdztt/gulp-trimcomments
  2. Write the following code in the gulpfile .js file
const { src, dest } = require('gulp');
const { TrimComments } = require('@cdztt/gulp-trimcomments');

function task() {
  return src('test.json' /* The target .js or .json file to process */)
    .pipe(new TrimComments())
    .pipe(dest('./' /* Modify the file in place */));
}

exports.default = task;

wiki

Readme

Keywords

none

Package Sidebar

Install

npm i @cdztt/gulp-trimcomments

Weekly Downloads

0

Version

1.0.8

License

MIT

Unpacked Size

6.88 kB

Total Files

6

Last publish

Collaborators

  • cdztt