当前位置:网站首页>Getting Started Doc 06 Adding files to a stream
Getting Started Doc 06 Adding files to a stream
2022-08-05 06:09:00 【dongsdh】
This is an optimization of the introductory document 04,
After converting all scss files into css files
Add other css files to the stream
Let them merge together, compress,,,
Complete a task and get the final desired result
const { src, dest, series, watch, parallel } = require("gulp");// // Convert scss to cssconst sass = require("gulp-sass")(require("sass"));//mergeconst concat = require('gulp-concat');//compressionconst cssmin = require("gulp-cssmin");function clean(cb) {console.log('clean up dist');cb();}function js(cb) {console.log('processing js');cb();}function css(cb) {console.log('processing css');src('src/scss/**/*.scss').pipe(sass()) //scss converted to css.pipe(src('src/css/**/*.css'))//The newly added file will only perform the task of later merging and compression.pipe(concat('app.css')) //Merge css, you must take a merged file name.pipe(cssmin()) //compression.pipe(dest('dist/'));cb();}function img(cb) {console.log('processing img');cb();}function build(cb) {console.log('Packaging');cb();}exports.default = series(clean, js, css, img, build);
边栏推荐
猜你喜欢
随机推荐
账号与权限管理
【Day1】VMware软件安装
入门文档04 一个任务依赖另外一个任务时,需要按顺序执行
C语言查看大小端(纯代码)
小度 小度 在呢!
网站ICP备案是什么呢?
腾讯云消息队列CMQ
每日一题-三数之和-0716(2)
添加新硬盘为什么扫描不上?如何解决?
SSL证书提示过期或者无效,该怎么处理呢?
【UiPath2022+C#】UiPath 练习-数据操作
(C语言)strlen、strcpy、strcat、strcmp、strstr函数的模拟实现
I217-V在openwrt软路由下大流量断网问题
每日一题-下一个排列-0723
Spark源码-任务提交流程之-6.2-sparkContext初始化-TaskScheduler任务调度器
Lua,ILRuntime, HybridCLR(wolong)/huatuo热更对比分析
D41_缓冲池
Unity huatuo 革命性热更系列1.3 huatuo示例项目源码分析与启发
lvm logical volume and disk quota
每日一题-盛最多水的容器-0716


![[Day1] (Super detailed steps) Build a soft RAID disk array](/img/40/cda8e5522c2795e03c0d47e8a689f8.png)





