Created
August 21, 2016 17:30
-
-
Save dengjonathan/6fe21a19765d2f59e6a52e4b8a3f6939 to your computer and use it in GitHub Desktop.
Front-End Development Gulpfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var browserSync = require('browser-sync') | |
.create(); | |
//var sass = require('gulp-sass'); | |
// Static Server + watching scss/html files | |
gulp.task('serve', function () { | |
browserSync.init({ | |
server: "./" | |
}); | |
//gulp.watch("app/scss/*.scss", ['sass']); | |
gulp.watch("app/*.html") | |
.on('change', browserSync.reload); | |
gulp.watch("app/*.js") | |
.on('change', browserSync.reload); | |
}); | |
/* | |
// Compile sass into CSS & auto-inject into browsers | |
gulp.task('sass', function() { | |
return gulp.src("app/scss/*.scss") | |
.pipe(sass()) | |
.pipe(gulp.dest("app/css")) | |
.pipe(browserSync.stream()); | |
}); | |
*/ | |
gulp.task('default', ['serve']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment