当前位置:网站首页>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);}边栏推荐
猜你喜欢

Blender软件介绍与使用心得

【Day1】(超详细步骤)构建软RAID磁盘阵列

Unity3D中的ref、out、Params三种参数的使用

添加新硬盘为什么扫描不上?如何解决?

函数在开发环境中的应用(简易实例)

framebuffer应用编程及文字显示(2)
![[Pytorch study notes] 8. How to use WeightedRandomSampler (weight sampler) when the training category is unbalanced data](/img/29/5b44c016bd11f0c0a9110cf513f4e1.png)
[Pytorch study notes] 8. How to use WeightedRandomSampler (weight sampler) when the training category is unbalanced data

OpenCV3.0 兼容VS2010与VS2013的问题

入门文档07 分阶段输出

腾讯内部技术:《轩辕传奇》服务器架构演变
随机推荐
电子产品量产工具(1)- 显示系统实现
I217-V在openwrt软路由下大流量断网问题
C语言的一些小常识
OpenCV3.0 兼容VS2010与VS2013的问题
spark源码-RPC通信机制
2020,Laya最新中高级面试灵魂32问,你都知道吗?
C语言程序死循环问题解析——变量被修改
“元宇宙”是个啥?都有哪些大招?
电子产品量产工具(5)- 页面系统实现
spark源码-任务提交流程之-2-YarnClusterApplication
网站ICP备案是什么呢?
C语言入门笔记 —— 初识
图片压缩失效问题
UE4动画雨滴材质制作教程
Unity中的GetEnumerator 方法及MoveNext、Reset方法
spark算子-textFile算子
新一代解析技术——云解析
每日一题-下一个排列-0723
LeetCode刷题之第129题
快问快答—腾讯云服务器常见问题解答