-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
35 lines (31 loc) · 968 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
35
/**
* Created by SKIff on 08.06.15.
*/
var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
// var minify = require('gulp-minify');
var plumber = require('gulp-plumber');
var notify = require('gulp-notify');
gulp.task('sass', function() {
return gulp.src('./sass/main.scss')
.pipe(plumber())
.pipe(sass()
.on('error', sass.logError)
)
.pipe(autoprefixer({
browsers: ['last 5 versions', 'opera 12', '> 1% in RU', 'ie 8']
}))
.pipe(gulp.dest('./css'));
});
// gulp.task('js', function(){
// return gulp.src('./js/app.js')
// .pipe(plumber())
// .pipe(minify())
// .pipe(gulp.dest('./js'))
// .pipe(notify('JavaScript minified'));
// });
gulp.task('watch', function() {
gulp.watch('./sass/**/*.scss', ['sass']);
//gulp.watch('./js/app.js', ['js']);
});