Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 269 Bytes

File metadata and controls

15 lines (11 loc) · 269 Bytes

使用方式

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'));