当前位置:网站首页>Getting Started Document 09 Standalone watch
Getting Started Document 09 Standalone watch
2022-08-05 06:09:00 【dongsdh】
series(
....
)
Export requires series
series also needs to be used when the watch is listening
Extract the series for ->export and monitor
const { src, dest, series, watch, parallel } = require("gulp");function clean(cb) {console.log('Clean up time'+new Date());cb()}function js(cb) {console.log('processing js');cb();}function css(cb) {console.log('processing css');cb();}function img(cb) {console.log('processing img');cb();}function build(cb) {console.log('Packaging');cb();}const Run = series(clean, js, img, css, build)watch(['./src/'], Run);exports.default = Run;
Monitor every time the content of the task is modified
边栏推荐
猜你喜欢
随机推荐
【Day8】磁盘及磁盘的分区有关知识
入门文档12 webserve + 热更新
将一句话的单词进行倒置(C语言纯代码)
Blender软件介绍与使用心得
快问快答—腾讯云服务器常见问题解答
你要找的cocos面试答案都在这里了!
通过单总线调用ds18b20的问题
Spark源码-任务提交流程之-6.1-sparkContext初始化-创建spark driver端执行环境SparkEnv
C语言入门笔记 —— 函数(1)
云游戏未来展望
如何用UE5渲染一个可爱的茶壶屋?
IJCAI 2022|Boundary-Guided Camouflage Object Detection Model BGNet
【Day8】 RAID磁盘阵列
电子产品量产工具(3)- 文字系统实现
新一代解析技术——云解析
Apache配置反向代理
每日一题-单调栈
【UiPath2022+C#】UiPath Switch
Spark源码-任务提交流程之-6.2-sparkContext初始化-TaskScheduler任务调度器
Lua,ILRuntime, HybridCLR(wolong)/huatuo热更对比分析