Tag: 吞噬

吞噬新一代vs吞噬改变

他们之间有什么不同? 更新 : gulp.src(imgSrc) .pipe(newer(imgDest)) .pipe(imagemin()) .pipe(gulp.dest(imgDest)); 吞噬改变 : gulp.src(SRC) .pipe(changed(DEST)) // ngmin will only get the files that // changed since the last time it was run .pipe(ngmin()) .pipe(gulp.dest(DEST)); 似乎吞噬变化更强大,因为它提供了一个选项 hasChanged: changed.compareLastModifiedTime

如何在gulp中运行bash命令?

我想在gulp.watch函数的最后添加一些bash命令来加快我的开发速度。 所以,我想知道是否有可能。 谢谢!

从吞噬问题运行业力任务

我正试图从gulp任务运行业力testing,我得到这个错误: Error: 1 at formatError (C:\Users\Tim\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:161:10) at Gulp.<anonymous> (C:\Users\Tim\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:187:15) at Gulp.emit (events.js:95:17) at Gulp.Orchestrator._emitTaskDone (C:\path\to\project\node_modules\gulp\node_modules\orchestrator\index.js:264:8) at C:\path\to\project\node_modules\gulp\node_modules\orchestrator\index.js:275:23 at finish (C:\path\to\project\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:21:8) at cb (C:\path\to\project\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:29:3) at removeAllListeners (C:\path\to\project\node_modules\karma\lib\server.js:216:7) at Server.<anonymous> (C:\path\to\project\node_modules\karma\lib\server.js:227:9) at Server.g (events.js:180:16) 我的系统是Windows 7 ,nodejs版本是v0.10.32 , v0.10.32版本: [10:26:52] CLI version 3.8.8 [10:26:52] Local version 3.8.9 此外,同样的错误我得到的Ubuntu 12.04 LTS而在较新的Ubuntu(不知道什么版本)和Mac OS似乎是工作正常。 什么会导致这个错误? 更新5/11/2016 :在写关于接受的答案隐藏错误的事实的评论之前,请先看两个评论,以接受答案。 只有在知道自己在做什么的情况下才使用它。 相关信息: https […]

gulp命令未find – 安装gulp后出错

我已经安装了gulp全球和本地使用 npm install gulp npm install gulp -g npm install gulp-util npm install gulp-util -g 当试图运行吞咽我得到 'gulp' is not recognized as an internal or external command, operable program or batch file. 运行npm list gulp@3.7.0 (或-g),我的gulp@3.7.0与我的全局或本地gulp@3.7.0安装的位置。 我试过运行node gulpfile.js指向我的大文件,它运行没有错误,当然,它开始与require('gulp') 。 有关在Windows(8.1)上进行大量工作的build议?