Commit 25c67621 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

added browser-sync

parent 7e0e102b
......@@ -6,6 +6,7 @@ var gulp = require('gulp'),
autoprefixer = require('gulp-autoprefixer'),
cssImport = require('gulp-cssimport'),
minifyCss = require('gulp-minify-css'),
browserSync = require('browser-sync'),
argv = require('yargs').argv,
extension = (function() {
if (typeof argv.ext === 'undefined') {
......@@ -28,5 +29,12 @@ gulp.task('css', function() {
.pipe(cssImport())
.pipe(autoprefixer())
.pipe(minifyCss())
.pipe(gulp.dest(cssPath));
.pipe(gulp.dest(cssPath))
.pipe(browserSync.reload({stream: true}));
});
gulp.task('browser-sync', function() {
browserSync.init(null, {
proxy: '<%= browserSyncProxy %>'
});
});
......@@ -5,6 +5,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"browser-sync": "^1.8.2",
"gulp": "^3.8.10",
"gulp-autoprefixer": "^2.0.0",
"gulp-compass": "^2.0.3",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment