1 Star 0 Fork 0

leonayx123/3weeks-3pages-10th

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gulpfile.js 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
leonayx123 提交于 2019-06-18 01:27 . first
var bs = require('browser-sync').create();
var gulp = require('gulp');
var less = require('gulp-less');
gulp.task('less-task', function () {
return gulp.src('./docs/less/*.less') // only compile the entry file
.pipe(less())
.pipe(gulp.dest('./docs/css'))
});
gulp.task('week1', function () {
gulp.watch('./docs/less/*.less', gulp.series("less-task"));
bs.init({
watch: true,
server: {
baseDir: "./docs",
index: "week1.html"
},
port: 8001
});
});
gulp.task('week2', function () {
gulp.watch('./docs/less/*.less', gulp.series("less-task"));
bs.init({
watch: true,
server: {
baseDir: "./docs",
index: "week2.html"
},
port: 8002
});
});
gulp.task('week3', function () {
gulp.watch('./docs/less/*.less', gulp.series("less-task"));
bs.init({
watch: true,
server: {
baseDir: "./docs",
index: "week3.html"
},
port: 8003
});
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangx/3weeks-3pages-10th.git
git@gitee.com:yangx/3weeks-3pages-10th.git
yangx
3weeks-3pages-10th
3weeks-3pages-10th
master

搜索帮助