gulp 默认的执行的命名文件为gulpfile 换成其他命名就识别不了 因为需要安装两次gulp或者说其他插件,一个是全局-g安装一个是本地目录安装, 本地目录安装时目录移动或者名字被改变就会失效提示找不到目录,本地重新装一次就可以了 几个常用api task 任务命令 dest 复制命令 pipe 管道,在这个里面进行一些动作 例如 pipe(gulp.dest('目录名')) gulp 初始化 require(‘glup’) 根命令 gulp.run(tasks...):尽可能多的并行运行多个task watch监控 下面实施当文件变化就执行dest 就不用手动的进行 gulp dest 例如 gulp.watch('src/*.*',['dest']);