当前位置:网站首页>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刷题之第33题
Jupyter notebook选择不同的Anaconda环境作为内核运行
快问快答—腾讯云服务器常见问题解答
每日一题-单调栈
(C语言)动态内存管理
成功的独立开发者应对失败&冒名顶替综
spark算子-repartition算子
电子产品量产工具(1)- 显示系统实现
【UiPath2022+C#】UiPath 练习-数据操作
每日一题-下一个排列-0723
C语言—三子棋的实现
每日一题-正则表达式匹配-0715
UiPath简介
【Day5】软硬链接 文件存储,删除,目录管理命令
深度学习系列(二)优化器 (Optimization)
spark源码-任务提交流程之-3-ApplicationMaster
LeetCode刷题之第701题
spark源码-任务提交流程之-2-YarnClusterApplication
D39_坐标转换
spark源码-任务提交流程之-4-container中启动executor









