Created
May 8, 2014 16:23
-
-
Save anonymous/4e0da1c62c48b736993a to your computer and use it in GitHub Desktop.
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 sass = require('gulp-sass'); | |
var prefix = require('gulp-autoprefixer'); | |
var browserSync = require('browser-sync'); | |
var reload = browserSync.reload; | |
var nodemon = require('gulp-nodemon'); | |
gulp.task('sass', function () { | |
return gulp.src('scss/*.scss') | |
.pipe(sass({outputStyle: 'compressed'}, {errLogToConsole: true})) | |
.pipe(prefix("last 2 versions", "> 1%", "ie 8", "Android 2", "Firefox ESR")) | |
.pipe(gulp.dest('css')) | |
.pipe(reload({stream:true})); | |
}); | |
gulp.task('browser-sync', ['nodemon'], function() { | |
browserSync.init(null, { | |
proxy: "localhost:8080" | |
}); | |
}); | |
gulp.task('default', ['sass', 'browser-sync'], function () { | |
gulp.watch("scss/*.scss", ['sass']); | |
gulp.watch(["public/js/**/*.js", "public/*.html"], reload); | |
}); | |
gulp.task('nodemon', function (cb) { | |
return nodemon({script: 'app.js'}).on('start', cb); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nope. "No data received".