-
Notifications
You must be signed in to change notification settings - Fork 2
/
gulpfile.js
41 lines (33 loc) · 1.27 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
// 'use strict';
// var gulp = require('gulp');
// var sass = require('gulp-sass');
// gulp.task('sass', function () {
// gulp.src('./sass/**/*.sass')
// .pipe(sass().on('error', sass.logError))
// .pipe(gulp.dest('./css'));
// });
// gulp.task('sass:watch', function () {
// gulp.watch('./sass/**/*.sass', ['sass']);
// });
'use strict';
var gulp = require('gulp'),
sourcemaps = require('gulp-sourcemaps'),
sass = require('gulp-sass');
gulp.task('sass', function () {
// return gulp.src('sass/**/*.{sass,scss}')
// return gulp.src('DAY27/fashion/sass/**/*.{sass,scss}')
// .pipe(sourcemaps.init())
// .pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError))
// .pipe(sourcemaps.write())
// .pipe(gulp.dest('DAY27/fashion/css'));
return gulp.src('Lecture/DAY35/dashboard/sass/**/*.{sass,scss}')
.pipe(sourcemaps.init())
.pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError))
.pipe(sourcemaps.write())
.pipe(gulp.dest('Lecture/DAY35/dashboard/css'));
});
gulp.task('sass:watch', function () {
// gulp.watch('sass/**/*.{sass,scss}', ['sass']);
// gulp.watch('DAY27/fashion/sass/**/*.{sass,scss}', ['sass']);
gulp.watch('Lecture/DAY35/dashboard/sass/**/*.{sass,scss}', ['sass']);
});