一些常用的gulp插件

最近项目中用到的一些gulp插件

package.json:

{
  "name": "gulp ext",
  "description": "Web Task",
  "author": {
    "name": "zhoutao",
    "email": "[email protected]"
  },
  "engines": {
    "node": ">= 0.10.0"
  },
  "devDependencies": {
    "colors": "^1.1.2",//console.log文字着色
    "del": "^2.0.2",//删除文件
    "gulp": "^3.9.0",//Gulp
    "gulp-concat": "^2.6.0",//拼接文字
    "gulp-htmlmin": "latest",//HTML压缩
    "gulp-imagemin": "latest",//图片压缩(无损)
    "gulp-inject": "^3.0.0",//HTML中插入代码
    "gulp-jshint": "~1.11.0",//JSHint语法验证
    "gulp-lzmajs": "^1.2.0",//JS压缩(适合JS大文件)
    "gulp-minify-css": "^1.2.1",//CSS压缩
    "gulp-minify-html": "^1.0.4",//HTML压缩
    "gulp-processhtml": "^1.1.0",//在HTML中处理各类引入文件,非常已用,强烈推荐;
    "gulp-rename": "~1.2.2",//改名
    "gulp-rev": "latest",//版本号处理
    "gulp-rev-append": "^0.1.6",//版本号处理
    "gulp-rev-collector": "latest",//
    "gulp-uglify": "~1.2.0",//
    "gulp-usemin": "^0.3.14",//
    "imagemin-pngquant": "^4.2.0",//png无损压缩
    "jshint": "~2.8.0",//
    "jshint-stylish": "~2.0.0",//
    "vinyl-paths": "^2.0.0"//
  }
}

参考资料:

如何使用gulp给资源文件加上版本 

用gulp清除、移动、压缩、合并、替换代码

删除文件和文件夹

相关推荐