18 lines
415 B
JavaScript
18 lines
415 B
JavaScript
|
'use strict';
|
||
|
|
||
|
var gulp = require('gulp');
|
||
|
var sass = require('gulp-sass');
|
||
|
|
||
|
sass.compiler = require('node-sass');
|
||
|
|
||
|
gulp.task('sass', function () {
|
||
|
return gulp.src('./assets/scss/style.scss')
|
||
|
.pipe(sass().on('error', sass.logError))
|
||
|
.pipe(gulp.dest('./assets/css'));
|
||
|
});
|
||
|
|
||
|
gulp.task('sass:watch', function () {
|
||
|
gulp.watch('./assets/scss/style.scss', ['sass']);
|
||
|
});
|
||
|
|
||
|
gulp.task('default', ['sass:watch'])
|