当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
入门文档05-2 使用return指示当前任务已完成
每日一题-删除链表的倒数第 N 个结点-0718
C语言查看大小端(纯代码)
D39_向量
【Machine Learning】1 Univariate Linear Regression
spark源码-任务提交流程之-3-ApplicationMaster
PVE 直通硬盘到TrueNAS
洞察互联网大趋势,读完这篇文章你就彻底了解中文域名
【机器学习】1单变量线性回归
链表章6道easy总结(leetcode)
Unity中的GetEnumerator 方法及MoveNext、Reset方法
[Day1] (Super detailed steps) Build a soft RAID disk array
错误类型:reflection.ReflectionException: Could not set property ‘xxx‘ of ‘class ‘xxx‘ with value ‘xxx‘
每日一题-单调栈
[Day8] (Super detailed steps) Use LVM to expand capacity
I217-V在openwrt软路由下大流量断网问题
Cocos Creator开发中的事件响应
每日一题-三数之和-0716(2)
OpenCV3.0 兼容VS2010与VS2013的问题
C语言入门笔记 —— 初识