问题标签 [gulp-buster]

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.

0 投票
1 回答
793 浏览

node.js - gulp-buster 永远不会“完成”

nodejs gulp用来处理和最小化我的less文件以及我正在使用的缓存破坏gulp-buster,但是,当我添加gulp-buster管道时,任务永远不会完成。

这是我的(一部分)Gulpfile.js

当我运行该任务时,我得到以下响应:

当我在没有我的情况下运行任务时.pipe(watch(function(...

怎么还没完结gulp-buster?我究竟做错了什么?

0 投票
0 回答
232 浏览

javascript - 如果使用 require.js,如何使用 gulp 进行缓存清除?

我使用 gulp-cachebust npm 进行 css 缓存破坏。因为我在 html 文件中包含了 css 文件,所以它可以工作。但我正在使用 require.js 加载 js 文件。我可以使用 gulp 进行 js 文件缓存破坏吗?我知道我们可以使用 require.js urlArgs 属性来做到这一点,但我想使用 gulp 来做到这一点。如果可以,我必须使用哪个模块?提前致谢。

0 投票
0 回答
486 浏览

javascript - gulp - angularjs 中的缓存破坏

我有一个名为的模块"A",其中包含所有必需的压缩文件,现在这个模块minified文件被其他模块使用。有没有办法我可以实施cache-busting here for Module A

我的问题是:

模块 B 的 index.html 包含对模块 A 的缩小文件的引用,如下所示:

模块 B 的 index.html是否可以加载 A 的缩小 js 的新版本,当它发生变化时?不改变 B 的 index.html??

我对模块 B 的 index.html没有任何控制权。