gulp-zrb
gulp solutions for zrb
Last updated 10 months ago by tjuking .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-zrb 
SYNC missed versions from official npm registry.

gulp solutions for zrb


    var gulp = require('gulp');
    var gulpZrb = require("gulp-zrb");
    
    gulpZrb({
        gulp: gulp, //必须传入gulp对象
        needOptimize: false, //默认js、CSS、image文件不需要压缩,线上需要开启压缩
        needCdn: false, //是否需要CDN
        fileExtMap: { //文件后缀名配置
            image: ['jpg', 'png', 'jpeg', 'gif', 'webp', 'bmp', 'svg'],
            style: ['css', 'less'],
            template: ['html'],
            script: ['js']
        },
        source: "client",
        output: "public",
        tplOutput: "views",
        cdn: "", //同时也支持数组
        serverStaticPath: "public", //server端渲染静态文件的第一个路径
        babelRecognition: "compileES6=true", //js文件里识别需要转es6的标识
        babelOptions: { //babel初始化传入的参数
            presets: ["env"]
        }
    });
    

如果要结合FIS3使用监听发布,需要将/usr/local/lib/node_modules/fis3/node_modules/fis3-command-release/lib/watch.js中的setTimeout扫描间隔由200毫秒调整为1000毫秒(降低监听敏感度)。

Current Tags

  • 1.1.4                                ...           latest (10 months ago)

15 Versions

  • 1.1.4                                ...           10 months ago
  • 1.1.3                                ...           10 months ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 3
Last Day 0
Last Week 2
Last Month 20
Dependencies (18)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |