一、安装

1)安装nodejs

通过nodejs的npm安装gulp,插件也可以通过npm安装。windows系统是个.msi工具,只要一直下一步即可,软件会自动在写入环境变量中,这样就能在cmd命令窗口中直接使用node或npm指令。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVwAAABpCAIAAAD5tAzRAAAgAElEQVR4nO2d+XMb55nnG3+PqnYrk53sTMZrO3biE7YkS7KVWD4yTnkcm3tN7aQcJ5FUtRGzrEieyeFxJrZjySPaFmVdpCiKosT7AIn7voiz0biBBg+RQDca3h/ePt7ufrvR4Alr3m99iwU0u5tvN/F++nmf9wDhphikXUo33FTDnW24sw1PtuHJNrw5YMaXZ3x5xp9n/HkmkGcCeSYIXGBCKge1LBwV0HPDn9N1vuHPNwK8mUCeCRSYQIENii6yoWIzVGyGihzvktotoy7yDgoOFFuBYstfbPkKLW+e8+Q5T55z5zh3jnPlOGeOc2Q5e5azZTkbxVkpzkpxS8AZbinDLUK2gBckZ4G8QHILJDef5ubT3Bzk2TQ3m+JmU9xMiptJctNJbgo4wU0muMkEN5HgxoHj3HiMG49xd1EeE70s8x1tj2o5ivCdKHcHtV1mnXPq/aGm6NvR5u1I83aEHYmwI2F2JMzcCjVuhRrDwfpwsH4zsHkzsDnk31B70Hdf7vVB7/oNmddueNC+7lm77lm97lm97ha9ovA1YBdwDfiqq3bVqWMa9hVHVcOVK/bKV+18xV4RD7nqqF51Vq856Wuu2nV37YZnZdCzOuRdu+lfJ4xAgd8o4iDb8OYavhwEggITzPPVPlxgwkUm0rnDRlzgrcYN7yITUh7FAkeAS03BXKTMRcpctMxFK7Bb0UoLvI6UW8LbVrTSisAuyxwut8ICLIKlVqDI+Qucv8D5ABfynCvHuQQoAC7wUJDjwCJaoACMg4U0t5CWQWEWIsJskifCNMQFQISJODcR58bj3HicuxfjjWCBYRwYqKVK326Lgy2jQQMKwCNh9paKC0N+Y1zYAhQkNCihIKEBgsK1NlAwjIYOoQBz4bqrdt29csOzMuhdHfJpQwFGg5ti3FlGDBB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uCNQwFECFtZeasLiTWdL3/5vT/Pvt1AD1XP5VTIEBs3cBCYCFtYeasLiSWdLf/XQkwRBaExpbKedCvt1chNYWFh7pqklL5krfevvniT0n8o6E6I6gkIn58FRAhbWPmja6s/kS3/10FOIwF+1XJB6tqBSijpsCApa59EtDxYW1i5pzh6k8pX/8vAz+10QLCys7tCiO5orVr/zvef3uyBYWFjdIbs/kS/X/vYHL+x3QbCwsLpDrjBZrK4+9PRL+10QLCys7pA/ni/X1h8xn9jvgmBhYXWHgqlyZWXjsUM/3u+CYGFhdYeiGbq6uvn9Iz/Z74JgYWF1h+K5VXq9/sSL/7DfBcHCwuoOJQtrtfuNJ1/66X4XBAsLqzuULt1fuc88dXwHVnPGwsJ6EASg8PTxd/a7IFhYWF2h/w/hTzGHdkO8lQAAAABJRU5ErkJggg==" alt="" />

我上面的cmd,已经被git封装过了,字体都变成彩色的了。安装了这个工具后,还可以通过Git Bash打Linux的命令。git是版本控制的工具,这里也不多说了。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJ8AAABYCAIAAABklLK7AAAGyklEQVR4nO2c609TdxjH+3edt9MsbhlZyMKLKcKmO063qdFddAvzqAuUubqjyRyGRBOM7hIjKqSoc0LlJlcvhdb20NJCaSkcSltaSlvqsxenPZf2tNAbtb89n/QFPf09Dyf5cH7nNM83aAAhF02lTwApI2iXZCS70ZXOsOdiyKULOloDdm3A1rrKNfss53kzszTdtGy5EFoyVPBEkQIQ7b4Je3Tx9XuJuDe0dHVltmVm4nQs/DgReyq8oiH94nRLJc8UyR/p2g17dPFIdzzSDbAJsOkYOzw9dGbdd2cz2huP/BML9bgmTlTwRJECULEbj3QDgO3ZwZd9pxZenY2FeqLBe5HV23Pjxwv5DRxLaSiWK9UJI3kgs+uW2920DjS8ePL1/POmyOrtMH9zzXvNOXp0q24cS2lS0HrpGNqtDJLdtYWfBbXR8N03iZC57+PJx0ed49+uea8FF373z7GzI1/k6sSxlKQUAPR0ulOOpeQLkLIj2Q3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HvFKLxWkCx+i3W1z5zkkIhy4GXCnvhG5GXAz4Zj3xsyPOQqLidupX7tpd+NUN1b2TSt9HdrdgsQGeH9J2o3aIeZK/sxfT7yJbVFbaNxOcd9Ve36iaFpsIi2WDqDdvFjUJqUKL09zifsj+VBquzG3JNjTDFFnifsj+VCeCeByOyy3laUzkg84vScZtEsyaJdk0C7JoF2SwdQcyWBqjmQwNUcy/+fUHPlUd2oOABSjBMXQIbNWTytnFGoTCKKo7tScPF4hK+VYSkNR6UMf5aBJ2TOtDylUdWouWwySYykNzWbO7SmWpbON9Yn8ny3VnJrLmmmUKhWzfYrl9Nntkqi3mlNzW9mVXduyI2g3LyqWmtvSrvhgJq7cwi5pj+hVnZrLple2PpVZTq7LYZfE7Hp1p+bSa2XPzKn1wm1b9i7rMzNxbqs9NQegTM7JlisidOIbpV21pDtRYGqOZDA1RzKYmiMZnN6TDNolGbRLMmiXZNAuyWBqjmQwNUcymJojGUzNkQwBqTm12sx5Xmp6K64mbFCvSpWn5rLWZrWr9hmxVHVqLkct2gWo7tRcrqgM2gUgJzWXVot2AYC41FyqFu0CAHGpOdFurlAc2s2btyI1J9lNe5pWpOLQbv5UKjWXPf4mz9Nl3qDx+27+YGrubQJTcySDqTmSwek9yaBdkkG7JIN2SQbtkoxkN7rSGfZcDLl0QUdrwK4N2FpXuWaf5TxvZpamm5YtF0JLhgqeKFIA/wHrMRefFZkL2gAAAABJRU5ErkJggg==" alt="" />

2)npm

npm(node package manager)nodejs的包管理器,用于node插件管理(包括安装、卸载、管理依赖等)

gulp赫然出现在npm的首页中。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASYAAABeCAIAAAABoC6VAAASNUlEQVR4nO2da3fbxpnH+530GfTCBDAgqdzo0IkdK0zs1JemtHOpGVfyslZjO47S1JfdWjFjU+k62U3c3TTMsvaqreT29LSustzjHFfVHsuNfHhEgCTAq0QSsy+GHA4GICWRICxZz+/o6JAgMBdg/niemQGe+R4GAMBFvve4CwAAOwuQ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uObVBALvI0a5k3ZeWsSxRx5t0sg+bAmK3kOB/SzsoFuEE1sHIYY8wIiXrkNuaOnh3qoHcZsUwlYtZ+jiXctzUWLfWv+MaaSsS4JmsrOWvwc7PPxq/8yDlpnVqqreQ69+VsAkuyq+pYJZeeT1pX7eLypd1juyX71u3L8f1q8svk+OSkJaJuPBKkqqDX2lZyjGCWgq1pJFZUbF+OObbZVMj8006UHJ15o8NK9FxYf8I23WubeblUIhadossXmNbfaG1ZiLba6Lh5PI2kkJyKhhj/bXk5RePVdl/tgB36My+vEQqFovOW9kr7ctzwzLqSM+dl8yurLronWSiPk9zyMl09jy8G09Wca3W6OP+ZjSdt3ymNTn3GjR7Tk2ydP4hHgt+PRFrXvd2Tt3Ms22OPM+2RtuZGavSoY0lHX+gg583Y2E6U3CDYAg95PLFwrmA/04lWrxL35Oy5CUjOHpDc4DBrzGY1lQ1jfyxIblsCkhsk3Nx6D3prpmA7LQGSAwCgDUgOAFwFJAcArgKSAwBXAckBgKuA5ADAVUByAOAqIDkAcBWQHAC4CkgOAFwFJAcArgKSAwBXAckBgKuA5ADAVf4fAR+7t3HC/MMAAAAASUVORK5CYII=" alt="" />

命令提示符执行:

npm install <name> [-g] [--save-dev]

1. <name>:node插件名称。例:npm install gulp-less --save-dev

2. -g:全局安装。将会安装在C:\Users\Administrator\AppData\Roaming\npm,并且写入系统环境变量;

非全局安装:将会安装在当前定位目录;

全局安装可以通过命令行在任何地方调用它,本地安装将安装在定位目录的node_modules文件夹下,通过require()调用;

3. --save:将保存配置信息至package.json(package.json是nodejs项目配置文件);

4. -dev:保存至package.json的devDependencies节点,不指定-dev将保存至dependencies节点

配置文件package.json是为了方便下载相关的包,只需要在有这个文件的文件夹下面执行“npm install”(如果安装了cnpm就用“cnpm install”),则会根据package.json下载所有需要的包。【注:我用demo中的package文件在另外一台电脑上面直接安装,打“gulp watch”的时候出现了很多错误】

3)cnpm

因为npm安装插件是从国外服务器下载,受网络影响大,可能出现异常。

在国内推荐使用淘宝NPM镜像。“这是一个完整 npmjs.org 镜像,你可以用此代替官方版本(只读),同步频率目前为 10分钟 一次以保证尽量与官方服务同步”

安装指令如下:

npm install -g cnpm --registry=https://registry.npm.taobao.org

注意安装的时候会出现错误提示,你可以关闭命令窗口再打开,打入“cnpm -v”可以查看版本号。cnpm跟npm用法完全一致。

4)全局安装gulp

cnpm install gulp -g

如果在某个工程文件夹中提示错误,那就手动再安装下“gulp”:

5)新建package.json文件

在命令窗口输入指令“cnpm init”。如果在Git Bash打这个指令,会报“No gulpfile found”的错误。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmkAAAD7CAIAAAC+IpTkAAAgAElEQVR4nO2daXcbx5X38X3wVTCZZDKJRTnzwrEtSjYSx45pJ/kGePO8zyQTLxIkipIoUVzl5JmHEy8SdxILSYmLNi4gwH3RYnvOeV40ulFVfW91VbMBNIj/79TxsZrdVbduV9Uft7q7KtHR2ZUAAAAAgDnQTgAAAMAOaCcAAABgB7QTAAAAsAPaCQAAANgB7QQAAADsgHYCAAAAdoTRzlRmNJMijifT2VH6L6bZnuJqOsNo8ktlRj2y6WQUWSbqUN+4kkxnrfxmez4AADSaUHFnMp2lhra4aSdn52nyg3baA+0EAJw1Ojq7nLHKLrIiQzqNdpqoTj20JLLQM5FIQDubR7SeBwCAU+JppzuKG/7op0K6GGpntKEntLNZQDsBALHCp50+CXSiUkoo1WPVC2thbCaVkB8W+iNb7+RsOi1qiRgLSwIjB8luTlIhkl26+WUn97Q7LssVJ6RNGcHV+poM7lx9xXpVDzqlpTNOzsptoPyjDbIJv9H3i62X1h4S8a4IlnHl0ufr2w8AADQDQjsViWAHSd9Q7Q6GzlFfNEtnIY7M0qWiLLr/zwTF+giOkBRfueG108tItFNjClVfqWTvHO+MVGY0m804clX7C+sfwgrab9z9YurF2xOE4kpNOyHPTyDuBADEDE47TWYT1ZBOGaHFEZAe++Qx0vsXHd4leHkKmGf2hZ7+ck8Td/ryYWHqq1zpHvdKUw/ozXAjNeEMx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ag/x+KmpToH7VAEQAAAABJRU5ErkJggg==" alt="" />

6)新建gulpfile.js文件

gulpfile.js是gulp项目的配置文件,里面是task的配置。简易代码如下:

var gulp = require('gulp');

gulp.task('default', function() {
// 将你的默认的任务代码放在这
});

7)删除node_modules文件夹

当安装了各种插件后,在你相应的目录下面会出现node_modules文件夹,里面又嵌套了很深的文件夹目录,如果你用右键删除的方式,会变得很慢,并且还会提示错误“无法删除”。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABcCAIAAAByRHW8AAAPDUlEQVR4nO2a6Vda2ZrG/atSN996dea6q2ut271MpapSdWtooyYVYxxjNCoaxyhxFucJjYgiMjghoOAEMqPIYUYO8zwdDhzE/qAmJtGulesxtq3P8gPuddjv8+N9z8vZm50Uv5RKOm8D56Mr7MukK+xTCHLytJJhp4kPB61INIwgCCrTnp3QwY75OWE7YWPmsZiVa5DWuXTdASsFcvNgPxANgTHYhyAxVAKhJZSwvZxEkB73U1W8GiETs72KASWlDkWBR1PiN2J9Ozg/2BO2USI+QTSwHQ1oYpAzfq4fBIrYtESQlIAYpq123jxGxCxRLJdaturdmnqPutynrwwYa4MmbNDcGrYNQI7RoIUAuRiwTxANbEX9qljYikRDX60oUMJ2LyWCtERwYi9C2YuwnLphLq1IwsVKF8sUK0UOdZvP0O0z4LzaOr8RGwKbw+a2sAUHWTsha0/ENhB1kaJuGmSfgu0zUc9aNLAdR6KoGDtJaGFzjmBT9mBW2DnHobzYWKzRbw4peDjpUrl5Gxu0DAdBvNfY71I3evTNITMOsnRB1m7YPgjb+mFrX8TSE7H0wHZixC1GxdhJQgcb/ijb+38MJLQmYJQtTRdr5V0ukK6REkWcVo20w63vhBzEkHXCYxhxAC0ubWsI7I1YeiOWnoilO2LuhMAup24WFWMnCaVsez7HpuxFZhJRMZ+BmZssACTNXtsE7F8xAdOiFQIgmzADfQFwAHaSw1aSQzOgEdbZlM0BIw4y4SAQZ94cRsXYSTpTbMoezLZrx3ubfmfTi/UKXNg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LbMWREtwAAAABJRU5ErkJggg==" alt="" />

这里有个方法,用npm里面一个专门用于删除的模块插件“rimraf”。

cnpm install -g rimraf

只需要打简单的指令就可删除:

 cd xxx[include node_modules folder] //用cd指令将文件目录设置到包含nod_modules的位置

 rimraf node_modules

二、插件与功能

1)全局配置config

可以将需要在gulpfile中引用的参数,放到这里,包括一些路径,功能的开关等。例如:

module.exports = {
name : '.....',
devPath : '.....', //项目根路径,根路径下可以包含多个项目
prodPath : '....', //生产路径根路径
sassPath : '.....', //SASS包含文件路径
rmHtmlWhitespace : false,//html中是否去除空格
webpackEntry : {
index : 'index.js'//js合并
},
server : {
port : 8088
}
};

注意下这里使用了module.exports,这是nodejs的语法。在gulpfile中将会用require引用config。

//加载项目配置
var config = require('./config');

2)监控gulp.watch

这个是gulp自带的,就是当你的文件改动了后,就做相应的task。还有一个插件gulp-watch

监控sass中的文件变化,一有变化就做sass的编译。“**”与“*”这种语法可以参考《Gulp:任务自动管理工具

gulp.task('watch', function() {
livereload.listen();
gulp.watch('**.html', ['html']);
gulp.watch('./sass/*.scss', ['sass']);
gulp.watch('./css/*.css', ['css']);
gulp.watch('./js/*.js', ['js']);
});

监控了四个地方的修改,js、html、css和sass,并且有做了自动刷新livereload。这个是通过“gulp-livereload”来实现的。

firefox货chrome要分别安装插件才可运行。chrom插件如下:

安装完后会在浏览器中出现个小按钮,aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAfCAIAAAATCLhVAAAFxElEQVRYhZVWzWsUSRztf2Gv3gxeclIRGXPQ02AMqDMJ1ikgKhE2nhRhNDgBBQ9mEUS8GEjwA0QCesq6IAjeAyLxsOKayzr10V1V3V2ffd5DfXR3Mhr2zaTq/d7v915V6AyZpLLVWNjqZ53qV51fTe7h1laVrWyVWGttZSsbd1c4IZCqijw2Ql3FqZbJZVVxqKocqaz7/fyQtZW1ibXWOKfxzFhrjLXWBMX3rfGyF40x1tiWZowNsjXeb3yqMeGUeELITowxxhhr9sG+Aybc6f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PHj+OyYmYjtIEkyzJKswCaZRkNQtBpnuevXr1y95iYmDh16tRgMHj31zuaUffn6T5Bb9684ZxnlGbUZ9FmEdcsdr2QpFmWpf7lkQaWhneWFUXx4cOHq1evAgCmp6ePHz9+9+7dNEub/9Xu379PUm9O67TMn9BcUn+ki0/SgCxNx/IIzjlj7O3bt8Ph8PLlyw8fPkzT1iU6nc7169cJIWPM2Z4yi2qWpCQlaUqI21ISaJoSQghJCSEkTYlvpmnOuZBSaZ0XeZoS/+3Nf0M0RVEEV4iKAe7taEh0oQn5CTBuFXh3+2e+0MIEE9waxHtMoU4IxhhjTDDBGBPPI8XEt0LpauJYaBFvr4PcpXGYbLjrkHgQSbwXI4wwxghjhBDySty8EsTmROz4Vp3lwkKxKzHEIowxSjBCCCOPSHzpmm0VN6RodndvBuE42E7HTeKRIIQgRBDCoECEEEQQBgoRQghCiBxBoeFUGF0QNjoxrK7rABi4m4cwgQhCGK4Ba6DG6lqobqDdc/46TRWNSYHjkUA4Go0ghBCO4Gg0Go0gHMERhHAEoS9c7UQ36x0wbt41qjU/NvLBMGY03977H9UerpGhlFJ1AAAAAElFTkSuQmCC" alt="" />,注意是黑色的时候才是在执行中。还有就是要在相应的task中加相应的代码:

.pipe(livereload())

3)sass编译与css压缩

通过sass编写css,能更模块化,多人协作比较方便。安装gulp-sass

“plumber()”是引用了“gulp-plumber”,任务错误中断自动重传。在使用一段时间后发现,执行了“plumber()”后监控是还继续的,但是sass就不会自动编译了。

后面把“plumber()”去掉,添加红色部分,这样就不会出现不编译的情况了。

gulp.task('sass', function() {
gulp.src('./sass/*.scss')
.pipe(plumber())
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./css'))
.pipe(livereload());
});

gulp-cssnano,压缩CSS代码。

gulp.task('css', ['sass'], function() {
//先删除dist中的css,有时候会不更新
gulp.src('./dist/css/*.css')
.pipe(rimraf({force: true})); gulp.src('./css/*.css')
.pipe(cssnano())
.pipe(gulp.dest('./dist/css'))
.pipe(livereload());
});

4)js压缩与模块化合并

使用gulp-uglify做js的压缩。gulpRimraf()用来删除文件夹,引用自gulp-rimraf

gulp.task('js', function() {
//先删除dist中的css,有时候会不更新
gulp.src('./dist/js/*.js')
.pipe(rimraf({force: true})); gulp.src('./js/*.js')
.pipe(plumber())
.pipe(jshint())
.pipe(jshint.reporter('default'))
.pipe(uglify())
.pipe(gulp.dest('./dist/js'))
.pipe(livereload());
});

上面的jshint是用来分析代码的,例如分号没写。通过打指令“gulp-jshint”。

模块化合并使用webpack-stream点击查看文档。github上面还有篇说明教程

gulp.task('webpack', function(){
var entry = {};
for(var name in config.webpackEntry){
entry[name] = './js/' + config.webpackEntry[name];
}
//排除bundle文件
return gulp.src('./js/*[^bundle].js')
.pipe(plumber())
.pipe(webpack({
entry: entry,
output: {
filename: '[name].bundle.js',
}
}))
.pipe(gulp.dest('./js'));
});

5)image图片无损压缩

通过gulp-image压缩的图片,有时候能牙70%以上,非常给力。

gulp.task('image', function(){
gulp.src('./img/*.+(jpg|png|gif|svg)')
.pipe(imagemin())
.pipe(gulp.dest('./dist/img'));
});

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAo4AAACeCAIAAAAzJRwFAAAgAElEQVR4nO19S6wlx3lebWPHFkVyhsOZaXL4EBPhOlHgRjZJNkkAoxcXDgIkgER1FtmIknjR2ViyrFVnefbkkMPHcCTqBgjgwIgQ5+nYEyALA0ZiR3YYP/iQxDikSA6Hz+HwcQdZdHf1/6xHnz6ve/8PF4M5dar+rq6u01/9j6rf/fFf3njz/U++/LVfcx32Dg6vLvYdRFm3DE1VkO/qEjUqqgZUoyhr2KCrK4qR5MDquA3oKZXjnHP7i6v03iTsL65CoBZ7B4f8G1C42O9aHx7s7R0c6pcT5cjdJHLgt6OU7roJNxdG3TowmK5txz/lSVJ0XTo82Fuy3GAwGE4Mbt68+eqrr7722mvXrl27DvDOO+90/7oEqj42mIXNthWzU7XBYDAY1oI4Vf+JQNUehxvt/FxAWvJxouq9Pa+LBlX4V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T9858//fgTl273VN0yXoTlnBe5w7gAEpahangJ7/YmNvDYGegGg8FgMGw5Eqj6tlOPP3Hp9juBVk2Cq7lWDbmZ67UVoPZWoVgRIlVXg45e4kWAdnWDwWAwGHYKcar+udtOPUao2mE+1iLD/ceAXrukVu3Dv5uhvMEVzFdtMBgMhh3HVKp2INKblJOt0uEwbE7VgQwknKr9R1Grtghwg8FgMOw+lqDqYtCtC2bNJuwYcBgnUnXL/hqsMfPjUJztqzYYDAbDcUAOVS8D7bSy1aG1gDKDwWAwHAesi6qdnQFuMBgMBsMUrJGqDQaDwWAw5CNK1f8f0+1h/b/efLIAAAAASUVORK5CYII=" alt="" />

6)html压缩

经过gulp-htmlmin压缩过的html可以缩小很多,可以看到都挤到了一起,有很多参数可以选择,比如去除空格等。

还可以通过gulp-replace来给静态资源文件加个版本号。

gulp.task('html', function() {
gulp.src('*.html')
.pipe(replace('__VERSION', Date.now().toString(16)))
.pipe(htmlmin({collapseWhitespace: true}))
.pipe(gulp.dest('./dist'))
.pipe(livereload());
});

7)fontmin字体压缩

网上有很多webfont,例如国外的Font Awesome,国内的iconfont。都能做出漂亮的自定义字体。

与西文字体不同,由于字符集过大,中文字体无法享受 webfont 带来的便利。为了让中文字体也乘上这道风,我们需要对其进行min。使用指令“gulp-fontmin”。

gulp.task('font', function() {
gulp.src('font/*.+(eot|svg|ttf|woff)')
.pipe(fontmin({
text: '人晒'
}))
.pipe(gulp.dest('dist/font'));
});

配置的两个字“人晒”与没配置的“国”,明显有区别。

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAAA3CAIAAACw6OLLAAAC6ElEQVR4nO3arYKjMBAH8HkL5D7CyUpkZSQSWbmSR4hEVlZGrkQiI5GVyEhkZE5AS2DDdwZ63PzVtqEk/DadpLRgKDiBowdw2pAsVkgWKySLFZLFCslihWSxQrJYIVmskCxWSBYrJIsVksUKyWLlTLJKxCzNy2pNVM7DrzDJK2+jOZcsA/gTJema3K4A8MXuhfY0mtPJMqFWvVjy9a915v+WreT9LusCcG5ZJRjMipvAklVFPh2RXAAALlxWHyarhJDeBlKf0JesKfOHyAp7NcsSAEgy5/qlP0r2xcD96m7IeDWQfHSwHyMr+Wv2SOVxOJtyBtnWddlQ6nnOZf99P3Seuh8urVdOnf2fll3r+svndaKhK25h7T/Hz75Atsxl2Wk+WPbNsaLA1rKdC3BPxtZ85QpmjO6tUr0V7CmiAOByy8q2xyNl23fxqoXLl6y7+65sJdP4ljx+XnusewwA8f3X3qtQ7x6Pk93oOiXba611m/3pu6kxn5bt51UNVJFJxyFHys5cdRacAri0/ZrWBq3zqD1qs6zRkl+C8Fs8q37zMbLuXfzCudu1M8aYYVl7yv7aJGyRNcaUIgoAguhRarv5CNl+HbDr4ILxDMpa1aBpHXrgRdYYnX8HAHDLKqt5f1lnfe1O4nmTd1zWodxcq1WBPckaUz6ucEkLu3lv2Teho+POGj6tO0uWCdWrBY5StF3W6PKpKqV027yv7JhrO6a5pWFgN9Wppkyo/r8ARdZoycMguKaFNgfIzvy81bn0kWMH7mZ1tgPjXc2oBlWesDAMwzBkUfxOxHpPxOxaH3W9iXJv2WWfY1cua208yRpjtF76pcuusqvuD8z5gD/Z43SWV4MZXe8lq5RSgvntbiKzb33jyHq91/xR39ZszPbvbknWHZqzWFGCQRD/rJMt0oiLwt8POU4lW5VP5et3GNtzJtnPCslihWSxQrJYIVmskCxWSBYrJIsVksUKyWKFZLFCslghWaz8BVsn5DuJAEBpAAAAAElFTkSuQmCC" alt="" />

8)CSS自动加浏览器前缀

gulp-autoprefixer”可以自动加“-webkit”、“-moz”等的前缀,自己可以少写很多兼容代码。可以在上面的sass的编译中添加一个引用。

有多个参数,点击查看说明。“last 2 versions”是浏览器的过滤设置,还有多个值,可以查看这里。插件并不仅仅是加个前缀,还能编译出旧的语法。例如flex的不同写法。

后面又查到一个插件“autoprefixer”,用户量非常,这是一个PostCSS插件,需要引入“gulp-postcss”。更多的PostCSS插件可以查看这里

gulp.task('sass', function() {
gulp.src('./sass/*.scss')
.pipe(plumber())
.pipe(sass().on('error', sass.logError))
.pipe(autoprefix({
    browsers: ['last 2 versions', 'Firefox < 20'],
    cascade: false
   }))
.pipe(gulp.dest('./css'))
.pipe(livereload());
});

输出:

9)将px自动转换为rem

使用了一个PostCSS插件,“postcss-px2rem”。

如果不想编译成rem单位,就在属性后面写“/*px*/”或“/*no*/”,这两个值也有点不同,具体参考这里

var postcss = require('gulp-postcss');
var px2rem = require('postcss-px2rem'); gulp.task('sass', function () {
var processors = [px2rem({remUnit: 75})];
return gulp.src('./sass/*.scss')
.pipe(gulpSass().on('error', gulpSass.logError))
.pipe(postcss(processors))
.pipe(gulp.dest('./css/')).pipe(livereload());
});

10)启动一个本地调试服务器

通过gulp-connect,可以做个server。如果你用notpad++这种开发页面,那这个指令会很有用。

gulp.task('server', function(){
var option = {
root : config.devPath,
port : config.server.port
};
if(config.server.root){
option.root = config.server.root;
}
connect.server(option);
});

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZEAAABbCAIAAAA9Ry9mAAASTUlEQVR4nO2dS3fbxhXH54vgE2iJL8EFT5O0sZ02SHoS12mTo4MmbT4Atvwg2jmWJTJmzkkXWrhuUtmWSEpRar0sy7L4JvV+ZdEFSGBedzgYggRB3d/Rwh4M7gyHmD/uXAwuycbh2cbh+cbhWev0+t6DfxAEQZBJZuPgZOPgdOPgtHVydff+N0l3B0EQRMkv+8e/vD3+Zf+4eXz54Wd/j3x+NreUy8bRkWxuKWBudiYOkxPdLoIgRqy/6aztddbedBpHF7//82x0AzOzc7FO9ZnZuUS0I6l2EQSJRGW3WXndrLxuNbrn73/yJZmZnVtaiuZ5xOZqEUJQsxAEUVLeqVd2G+XdZqN79t7Hf/U1qy9BM7NzOrIVq6uFmoUgiILyTr2yWy/v1hvds9/96QtWs4j0v+LUBkQr9Nlys31FYA1mc0u8j8ZpR69+YKp/SOXcjbJdBXRkjK1POa/M7SCXDU/yDwjKyRTo20GQqaW8U1vbbaz5mvVHQbO4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WZh/iwEQSafQqVbCDXr28EnIAiCJEih0vVlCzULQZAUUKh0fM3aQc1CEGTy8Z8bop+FIEg6yDMxeNQsBEEmm3ypnS+38+U2PjdEECQFLK62FkvtxVIb92chCJICFleai6utxd67O6hZCIJMNgsvG4srzcWV5naNet8QQRBkMll4UV942Vh42diqnoV5HRAEQSaTx89rj1/UH7+ob1XP7gY5/xAEQSaT+eXq4+e1+ee1zerZnftfJ90dBEEQJfPL1fnntfnl2mb1FDULQZBJx9esR8vVzUPULARBJp755er8cl+zPkfNQhBkskHNQhAkTcwv11CzEARJC/8HCTaXey3TrvoAAAAASUVORK5CYII=" alt="" />

上面的localhost可以改成本机的IP地址,手机与电脑在同一个网段的话,就可以直接用手机调试了。

11)node_modules目录

node_modules目录中的内容非常大,如果在每个工程下面都安装,会造成很大的浪费。可以将其放在各个工程的公共父级中,而在各个目录下面使用自己的gulpfile.js,config.js等配置文件。

例如工程都在public文件夹中,我就将node_modules放在public的平级。

demo下载地址:

http://download.csdn.net/download/loneleaf1/9416080

参考资料:

http://www.ydcss.com/archives/18   gulp详细入门教程

http://www.runoob.com/nodejs/nodejs-npm.html   NPM 使用介绍

http://javascript.ruanyifeng.com/tool/gulp.html    Gulp:任务自动管理工具

http://www.ghostchina.com/module-exports-and-exports-in-node-js/  Node.js 系列之 —— module.exports 与 exports

http://segmentfault.com/a/1190000002658165?utm_source=tuicool   JGulp: 利用Gulp 配置的前端项目自动化工作流

http://www.w3ctech.com/topic/935    Fontmin 快速指南

前端自动化构建工具gulp记录的更多相关文章

  1. 前端自动化构建工具gulp的使用总结

    前端自动化构建工具gulp的使用总结 博主最近偶的空闲,在此对gulp的使用做一个总结,让小伙伴知道如何合理的使用gulp以及gulp的使用技巧. 谈到gulp,有人可能就会想到另外一个构建工具gru ...

  2. 前端自动化构建工具 Gulp 使用

    一个月没写博客了,今天有时间,就写个gulp的入门使用吧.. 简介:gulp是一个前端自动化构建工具,可以实现代码的检查.压缩.合并……等等,gulp是基于Node.js的自动任务运行器 一.安装No ...

  3. 前端自动化构建工具——gulp

    gulp是基于流的前端自动化构建工具. 一.环境配置 gulp是基于nodejs的,所以没有 nodejs 环境的要先去安装好 然后给系统配上gulp环境 npm install -g gulp 再到 ...

  4. 前端自动化构建工具--Gulp&&Webpack

    前端构建工具的作用可以认为是对源项目文件或资源进行文件级处理,将文件或资源处理成需要的最佳输出结构和形式. 在处理过程中,我们可以对文件进行模块化引入.依赖分析.资源合并.压缩优化.文件嵌入.路径替换 ...

  5. 前端自动化构建工具 gulp 学习笔记 一、

    一.我对gulp的初期理解 是一种前端辅助开发工具 可以帮你把js,css,img等文件 合并.压缩,图片好像是合并为精灵图,合并为精灵图之后,还会生成一个css样式表. 官方解说是:基于流的自动化构 ...

  6. 前端自动化构建工具——gulp环境搭建教程

    gulp是前端工程化的工具,它可以对html,css,js等代码和图片进行压缩,也可以对sass和less等预处理语言进行编译,代码部署.gulp学起来简单,用起来方便,大大提高我们工作效率. 这里可 ...

  7. 前端自动化构建工具-gulp

    gulp 和grunt这两个是我知道的自动构建工具,但是说实话都没在项目中用过,不太清楚自动化构建是什么意思, 1.grunt和gulp有什么相同点和不同点? (1).易于使用:采用代码优于配置策略, ...

  8. 前端自动化构建工具gulp使用

    1. 全局安装 gulp: $ npm install --global gulp 2. 作为项目的开发依赖(devDependencies)安装: $ npm install --save-dev ...

  9. 前端自动化构建工具gulp

    1.gulp的安装 首先确保你已经正确安装了nodejs环境.然后以全局方式安装gulp: npm install -g gulp 全局安装gulp后,还需要在每个要使用gulp的项目中都单独安装一次 ...

随机推荐

  1. Windows 7上执行Cake 报错原因是Powershell 版本问题

    在Windows 7 SP1 电脑上执行Cake的的例子 http://cakebuild.net/docs/tutorials/getting-started ,运行./Build.ps1 报下面的 ...

  2. 继电器是如何成为CPU的(1)

    继电器是如何成为CPU的(1) ——<穿越计算机的迷雾>整理和总结 究竟是如何设计的电路,具有计算和控制的智力? 这一点也不高深.本系列文章从初中学的最简单的电路图说起,看看能不能从最初的 ...

  3. Modify Branding of FreeCAD

    Modify Branding of FreeCAD eryar@163.com This article describes the Branding of FreeCAD. Branding me ...

  4. IdentityServer4 使用OpenID Connect添加用户身份验证

    使用IdentityServer4 实现OpenID Connect服务端,添加用户身份验证.客户端调用,实现授权. IdentityServer4 目前已更新至1.0 版,在之前的文章中有所介绍.I ...

  5. python 数据类型 ---文件一

    1.文件的操作流程: 打开(open), 操作(read,write), 关闭(close) 下面分别用三种方式打开文件,r,w,a 模式 . "a"模式将不会覆盖原来的文件内容, ...

  6. Android—自定义开关按钮实现

    我们在应用中经常看到一些选择开关状态的配置文件,做项目的时候用的是android的Switch控件,但是感觉好丑的样子………… 个人认为还是自定义的比较好,先上个效果图:

  7. Android local.properties 文件读取

    转载请标明出处:http://www.cnblogs.com/zhaoyanjun/p/6202369.html 本文出自[赵彦军的博客] 在Android Studio项目里面有个local.pro ...

  8. ios 类似微信红点显示功能

    设计思路:给UIView增加一个分类 所有的视图都可以根据需要来进行红点显示 #import <UIKit/UIKit.h> @interface UIView (CHRRedDot) @ ...

  9. Mysql - 数据库操作

    之前介绍了数据库的增删改查, 发现忘记了数据库的一些基本操作, 比如建库, 建表, 改表等等. 那这里就来小结一下数据库sql形式的基本操作. 一.库操作 1. 建库 在建库之前, 可能需要看一下, ...

  10. BZOJ3198[SDOI2013]SPRING

    Description Input Output Sample Input 3 3 1 2 3 4 5 6 1 2 3 0 0 0 0 0 0 4 5 6 Sample Output 2 HINT 题 ...