当前位置:网站首页>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] (Super detailed steps) Build a soft RAID disk array
C语言—扫雷的实现
云游戏未来展望
电子产品量产工具(1)- 显示系统实现
lvm逻辑卷及磁盘配额
栈的应用——力扣 20.有效的括号
D41_缓冲池
每日一题-盛最多水的容器-0716
Getting Started Documentation 10 Resource Mapping
Remembering my first CCF-A conference paper | After six rejections, my paper is finally accepted, yay!
入门文档03 区分开发与生产环境(生产环境才执行‘热更新’)
UE5再次更新!扫描或手动建模面部模型可直接转为绑定好的Metahuman
每日一题-括号生成-0721
TensorFlow ObjecDetectionAPI在win10系统Anaconda3下的配置
D46_给刚体施加的力
PVE 直通硬盘到TrueNAS
每日一题-单调栈
入门文档08 条件插件
【UiPath2022+C#】UiPath 练习和解决方案-变量、数据类型和控制流程
【Day6】文件系统权限管理 文件特殊权限 隐藏属性








