gulp(六)常用gulp插件
目录:
- gulp-load-plugins:省去手动引用插件的麻烦
- gulp-usemin:本文主要讲解的插件
- gulp-rev:添加md5戳
- 编译Sass (gulp-ruby-sass)
- 补全浏览器兼容的css(gulp-autoprefixer)
- 压缩html(gulp-htmlmin) https://github.com/muzhen/gulp/tree/master/gulp-htmlmin
- 压缩CSS (gulp-minify-css) https://github.com/scniro/gulp-clean-css/edit/master/test/fixtures/test.css
- 压缩js(gulp-uglify)
- 检查js(gulp-jshint)
- 合并文件,拼接 (gulp-concat) https://github.com/muzhen/gulp/tree/master/gulp-concat
- 图片压缩 (gulp-imagemin)
- 即时重整 ,服务器控制客户端同步刷新(需配合chrome插件LiveReload及tiny-lr)(gulp-livereload)----
- BrowserSync (livereload的升级版)
- 清空文件夹,清理档案,清空目录 (gulp-clean)
- 图片快取,只有更改过得图片会进行压缩 (gulp-cache)
- 更动通知 (gulp-notify)
- 重命名文件(gulp-rename)
- 模板(gulp-template)
- markdown 编辑工具(gulp-markdown)
参考:
https://www.cnblogs.com/muzhen/p/5336626.html
https://www.npmjs.com/confirm-email/IVEnvYi-ejc6vmEynQRIK4TwV9L0Nz7ZN2Rcz31x(全)
http://gulpjs.com/plugins/(介绍具体)
工欲善其事 必先利其器