[TOC]

6. 注意事项(Attention)

  • watch 的时候路径不要用 ‘./path’,直接使用 ‘/path’ 即可,不然会导致新增文件无法被 watch。
  • gulp 对于 one after one 的任务链,需要加 return,比如 gulp clean

参考资料:An introduction to Gulpgulp API 介绍

扩展资料:Gulp API docsgulp-cheatsheet

原文地址:Gulp构建前端自动化工作流之:常用插件介绍及使用