4 Star 0 Fork 0

amiabikity/jiujiu

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
gulpfile.js 935 Bytes
Copy Edit Raw Blame History
amiabikity authored 2021-05-06 17:47 . 初始化项目
var gulp = require('gulp');
var sass = require('gulp-sass');
var babel = require('gulp-babel');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var cleanCSS = require('gulp-clean-css');
var del = require('del');
var paths = {
styles: {
src: 'assets/scss/**/*.scss',
dest: 'assets/css'
}
};
function clean() {
return del([ 'assets/css' ]);
}
function styles() {
return gulp.src(paths.styles.src)
.pipe(sass())
.pipe(cleanCSS())
.pipe(gulp.dest(paths.styles.dest));
}
function watch() {
gulp.watch(paths.styles.src, styles);
}
var build = gulp.series(clean, gulp.parallel(styles));
exports.clean = clean;
exports.styles = styles;
exports.watch = watch;
exports.build = build;
exports.default = build;
//压缩之后的js可以使用该网站http://jshaman.com/protect.html对js进行安全加密操作(别人无法解密和破解你的js代码)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/amiabikity/jiujiu.git
git@gitee.com:amiabikity/jiujiu.git
amiabikity
jiujiu
jiujiu
master

Search