forked from fvtt-fria-ligan/vastgrimm-foundry-vtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
34 lines (30 loc) · 909 Bytes
/
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
const concat = require('gulp-concat');
const gulp = require('gulp');
const prefix = require('gulp-autoprefixer');
const gsass = require('gulp-sass')(require('sass'));
const pug = require('gulp-pug-3');
gulp.task('pug', function () {
return gulp.src('pug/**/*.pug')
.pipe(pug({
pretty: true,
}))
.pipe(gulp.dest('./'))
})
gulp.task('sass', function () {
return gulp.src('pug/**/*.scss')
.pipe(gsass({
outputStyle: 'expanded'
}).on('error', gsass.logError))
.pipe(prefix({
cascade: true
}))
.pipe(concat('vastgrimm.css'))
.pipe(gulp.dest('./css'))
})
// gulp.task('watch', gulp.series(['pug', 'sass'], () => {
// gulp.watch('pug/**/*.scss', gulp.series(['sass']))
// gulp.watch(['pug/**/*.pug','pug/**/*.js'], gulp.series(['pug']))
// }))
gulp.task('watch', gulp.series(['sass'], () => {
gulp.watch('pug/**/*.scss', gulp.series(['sass']))
}))