gulp-loader-execute
加载gulp插件并执行
Last updated 4 years ago by rodey .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-loader-execute 
SYNC missed versions from official npm registry.

#gulp-loader-execute

##Features +加载gulp插件并执行


    var loaderExecute = require("gulp-loader-execute");

    gulp.src("./README.md")
      .pipe(loaderExecute({
        //params    参数
        //type      参数类型, 如 gulpReplace('bar', 'F00F');
        //'struct'代表平行传参 arg1,arg2,...argn
        //而有些插件需要传递的是字符串,数组,或者是对象, 那么type字段就是用来标注参数类型的
        //**在使用之前,必须保证这写插件都已成功安装
        'gulp-replace': { params: ['bar', 'F00F'], type: 'struct' },
        'gulp-rename': 'temp.md'
      }))
      .pipe(gulp.dest("./dist"));


      // 等价于 ==

    var rename = require('gulp-rename'),
        replace = require('gulp-replace');
    gulp.src("./README.md")
      .pipe(replace('bar', 'F00F'))
      .pipe(rename('temp.md'))
      .pipe(gulp.dest("./dist"));


License

ISC License

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

2 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |