-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gulpfile.js
43 lines (40 loc) · 1.09 KB
/
Gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const gulp = require("gulp");
const postcss = require("gulp-postcss");
const sass = require("gulp-sass");
gulp.task("sass:tailwind", function () {
return gulp
.src("src/sass/tailwind.scss")
.pipe(
sass({
outputStyle: "compressed",
}).on("error", sass.logError)
)
.pipe(
postcss([
require("tailwindcss"),
require("autoprefixer"),
require("cssnano"),
])
)
.pipe(gulp.dest("mongo_dash/public/css/"));
});
gulp.task("sass", function () {
return gulp
.src("src/sass/main.scss")
.pipe(
sass({
outputStyle: "compressed",
}).on("error", sass.logError)
)
.pipe(
postcss([
require("tailwindcss"),
require("autoprefixer"),
require("cssnano"),
])
)
.pipe(gulp.dest("mongo_dash/public/css/"));
});
gulp.task("sass:watch", function () {
gulp.watch("./src/**/*.scss", gulp.series("sass"));
});