当前位置:网站首页>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);}边栏推荐
猜你喜欢
随机推荐
(C语言)计算结构体大小——结构体内存对齐
[Pytorch study notes] 8. How to use WeightedRandomSampler (weight sampler) when the training category is unbalanced data
TCP/IP四层模型
入门文档10 资源映射
电子产品量产工具(2)- 输入系统实现
什么是全栈设计师?
虚幻引擎5都有哪些重要新功能?
Unity中的GetEnumerator 方法及MoveNext、Reset方法
每日一题-寻找两个正序数组的中位数-0713
LeetCode刷题之第54题
Blender软件介绍与使用心得
Unity3D中的ref、out、Params三种参数的使用
(oj)原地移除数组中所有的元素val、删除排序数组中的重复项、合并两个有序数组
Spark源码-任务提交流程之-6.2-sparkContext初始化-TaskScheduler任务调度器
深度学习系列(一)简介、线性回归与成本函数
每日一题-正则表达式匹配-0715
UE4动画雨滴材质制作教程
来来来,一文让你读懂Cocos Creator如何读写JSON文件
LeetCode刷题之第1024题
Spark源码-任务提交流程之-6-sparkContext初始化






![[Paper Intensive Reading] Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation (R-CNN)](/img/a7/fc3fe440f5e57362d44ae875b7d436.png)


