当前位置:网站首页>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);}边栏推荐
猜你喜欢
随机推荐
LeetCode刷题之第74题
将一句话的单词进行倒置(C语言纯代码)
入门文档08 条件插件
spark算子-repartition算子
ROS视频教程
如何使用Houdini进行程序化优化?
PVE 直通硬盘到TrueNAS
【UiPath2022+C#】UiPath 数据操作
Unity huatuo 革命性热更系列1.3 huatuo示例项目源码分析与启发
网络通信及相关函数介绍
【UiPath2022+C#】UiPath Switch
每日一题-寻找两个正序数组的中位数-0713
C语言查看大小端(纯代码)
新一代解析技术——云解析
【Day6】文件系统权限管理 文件特殊权限 隐藏属性
亲身实感十多年的面试官面试的题目
腾讯内部技术:《轩辕传奇》服务器架构演变
每日一题-盛最多水的容器-0716
huatuo 革命性热更新解决方案系列1·1 为什么这么NB?huatuo革命Unity热更新
Wireshark抓包及常用过滤方法









