gulp-cson2
Inspired by gulp-cson, but written in js.
- It delays the extname modification to the next event loop so
gulp-watch
's callback could print files with their original 'cson' extname. - It has a standard error handling, so it works great with
gulp-plumber
. - It uses cson-parser directly instead of using cson package, so it is smaller than
gulp-cson
Usage
Install
npm i -D gulp-cson2
Example
// you can use it without watch & plumber for sureconst gulp = const watch = const plumber = const cson = { return // indent is 2 by default. it's directly passed to JSON.stringify's third argument } gulp