使用方式
npm install --save-dev gulp-json2php
gulpfile.js
配置:
const json2php = require('gulp-json2php').json2php;
gulp.src('./handle-map.json')
.pipe(json2php({funName: 'polyfillMap'}))
.pipe(gulp.dest('json2php'));
npm install --save-dev gulp-json2php
gulpfile.js
配置:
const json2php = require('gulp-json2php').json2php;
gulp.src('./handle-map.json')
.pipe(json2php({funName: 'polyfillMap'}))
.pipe(gulp.dest('json2php'));
npm i gulp-json2php
0
1.0.3-0
MIT
9.12 kB
16