-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
38 lines (33 loc) · 1.03 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
var gulp = require('gulp') // import the gulp module itself
const sass = require("gulp-sass")
const watchSass = require("gulp-watch-sass")
// var reveasy = require('node_modules/gulp-rev-easy/index');
//Use for compiling Sass.... first cd to css/custom
// sass --watch app1url.scss app1url.css
//from the cmd line: gulp sass:watch
var reveasy = require('gulp-rev-easy');
gulp.task('reveasy', function (argument) {
gulp.src('index.html')
.pipe(reveasy({
base : 'C:\\Users\\Monette\\Documents\\GitHub\\appDemo1\\ui',
revMode:'dom',
hashLength:4,
revType:'hash',
suffix:'v',
fileTypes:['css', 'js'],
}))
.pipe(gulp.dest("./"))
});
gulp.task('sass', function(){
console.log('sass');
return gulp.src('./css/custom/app1url.scss')
.pipe(sass()) // Converts Sass to CSS with gulp-sass
.pipe(gulp.dest('./css/custom'))
});
gulp.task("sass:watch", () => watchSass([
"./css/custom/**/*.{scss,css}"
])
.pipe(sass())
.pipe(gulp.dest("./css/custom")));
// ,
// "!./css/libraries/**/*"