forked from uethackathon02/uethackathon2015_team2server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
31 lines (27 loc) · 878 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
// Include gulp
var gulp = require('gulp');
// Include Our Plugins
var jshint = require('gulp-jshint');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var livereload = require('gulp-livereload');
var minifyCss = require('gulp-minify-css');
// Compile Our Sass
gulp.task('sass', function () {
return gulp.src('resources/sass/style.scss')
.pipe(sass())
.pipe(minifyCss({compatibility: 'ie8'}))
.pipe(rename('public/assets/css/style.css'))
.pipe(gulp.dest(''))
.pipe(livereload());
});
// Watch Files For Changes
gulp.task('watch', function () {
livereload.listen();
gulp.watch(['resources/sass/**/*'], ['sass']);
});
// Default Task
//gulp.task('default', ['sass', 'scripts', 'watch']);
gulp.task('default', ['sass', 'watch']);