当前位置:网站首页>Getting Started 03 Distinguish between development and production environments ("hot update" is performed only in the production environment)
Getting Started 03 Distinguish between development and production environments ("hot update" is performed only in the production environment)
2022-08-05 06:08:00 【dongsdh】
const { src, dest, series, watch, parallel } = require("gulp");function clean(cb) {console.log('clean up dist');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();}function livereload(cb) {console.log('Hot Update');cb();}if (process.env.NODE_ENV === 'production') {exports.default = series(clean,parallel(js,css,img),build);} else {exports.default = series(clean,parallel(js,css,img),build,livereload);}
边栏推荐
- Spark源码-任务提交流程之-6.1-sparkContext初始化-创建spark driver端执行环境SparkEnv
- 每日一题-正则表达式匹配-0715
- 每日一题-删除链表的倒数第 N 个结点-0718
- 深度学习系列(二)优化器 (Optimization)
- OpenCV3.0 兼容VS2010与VS2013的问题
- 每日一题-单调栈
- 【UiPath2022+C#】UiPath数据类型
- Unity物理引擎中的碰撞、角色控制器、Cloth组件(布料)、关节 Joint
- 【3D模型教程】ZBrush如何表现皮肤纹理?
- Spark源码-任务提交流程之-6.2-sparkContext初始化-TaskScheduler任务调度器
猜你喜欢
随机推荐
论那些给得出高薪的游戏公司底气到底在哪里?
快问快答—腾讯云服务器常见问题解答
LeetCode刷题之第1024题
UE5再次更新!扫描或手动建模面部模型可直接转为绑定好的Metahuman
spark算子-repartition算子
Unity huatuo 革命性热更系列1.2 huatuo热更环境安装与示例项目
电子产品量产工具(1)- 显示系统实现
framebuffer应用编程及文字显示(1)
spark源码-任务提交流程之-5-CoarseGrainedExecutorBackend
Contextual non-local alignment of full-scale representations
IJCAI 2022|Boundary-Guided Camouflage Object Detection Model BGNet
C语言的一些小常识
最简单的防抖节流理解法
D39_坐标转换
每日一题-盛最多水的容器-0716
来来来,一文让你读懂Cocos Creator如何读写JSON文件
你要找的cocos面试答案都在这里了!
Remembering my first CCF-A conference paper | After six rejections, my paper is finally accepted, yay!
浅谈遇到的小问题
OpenCV3.0 兼容VS2010与VS2013的问题