问题标签 [gulp-watch]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
gulp - 为什么 Gulp.js 会抛出 Bus Error: 10 with gulp.watch?
在观看的文件更改后,我不断得到一个Bus error: 10
with 。gulp.watch()
为什么Bus error
使用有效的 gulpfile 会发生这种情况?
这是我的 gulpfile:
gulp - 用于运行 PHP 服务器的 Gulp 插件?
我正在寻找从咕噜到吞咽的过渡。但是,我没有找到一种方法来提供具有 livereload 支持的 PHP 文件,例如使用挂载的网关( https://www.npmjs.org/package/gateway )。有没有使用 gulp 任务运行/服务器 PHP 的插件?
javascript - Gulp plumber cannot pipe to undefined
I am trying, to write a module that when gulp is watching a task, and a Less file changed with some error, it should give a message to the console, but it should not crash the system, which it does no: This is the code I have written:
When I run the above code, I get the error below:
macos - Gulp.js 在查看文件时如何执行命令?
我知道有用于在任务中执行命令的 gulp 插件。我想要做的是运行 Gulp,在它观看文件的同时,我可以切换我的 git 分支,而无需打开新的终端选项卡,在那里执行命令,然后再切换回来。
node.js - 使用 gulp-file-include 监视 Gulp
我正在使用yeoman/generator-gulp-webapp并添加了gulp-file-include。 我设置 gulpfile.js 以在 build 包含文件,但我不知道如何设置gulp watch。
下面是我尝试这样做,但似乎这不起作用。我没有收到任何错误。一切正常,除了 index.html 有 @@include(...) 而不是这些文件中的代码
gulp - Gulp-watch 没有获取新文件
每当文件更改、删除或添加新文件时,我都会尝试运行任务。然而,前两个工作:当一个新文件被添加时,它不会被拾取。
我安装了这个包gulp-watch
,我有这个任务:
javascript - Gulp.js 不会重新加载纯 CSS
这是我的 Gulpfile:
它将重新加载 CSS 一次,然后崩溃并出现以下错误:
不知道该怎么做,有人遇到过类似的问题吗?
durandal - gulp-durandal TypeError:req.toUrl 不是函数
我尝试按照Durandal gulp doc上的说明对我的 durandal 项目实施 gulp
main.js 文件已成功构建,但是当尝试单击将打开模式对话框的内容时,它将显示此错误(firefox):
这是我在 gulpfile.js 上的配置
我也遇到了这个答案https://stackoverflow.com/a/23329383/1889014
但我不确定这是否与我的问题有关。
有人可以帮助或指导我完成这个吗?谢谢!
symfony - gassetic build --env=prod 不关注文件更改
我在运行时遇到问题
gassetic build --env=prod
我的 gassetic.yml 文件有以下内容
然而,在编译完 css 后,没有观察者在指定位置观察 scss 文件的变化。
我是否遗漏了 gassetic.yml 文件中的某些内容?
javascript - 为每个文件分别触发 Gulp 监视
我认为我需要对我的 gulp 文件进行全面改进。但目前最困扰我的是 gulp watch 的行为。我使用 gulp-watch 重新加载 gulp-connect 以更新 chrome。问题是,它是为每个文件单独触发的。
这是我的 gulp 文件的摘录:
我将最后一个手表从['livereload']
打印文件路径的功能更改为调试目的。(详细设置似乎没有任何效果。)运行 gulp 的输出如下所示:
问题是,手表是为每个文件单独触发的。这很烦人,因为 lint 警告可能会滚动到视野之外,具体取决于窗口的高度。我该如何解决这个问题?