Commit 33cf23ec authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] add browsersync task

parent 034ed618
......@@ -114,6 +114,11 @@ module.exports = yeoman.generators.Base.extend((function() {
this.destinationPath('gulp/css.js'),
answers
);
this.fs.copyTpl(
this.templatePath('gulp/browser-sync.js'),
this.destinationPath('gulp/browser-sync.js'),
answers
);
};
Generator.writeCompassConfig = function() {
......
......@@ -2,7 +2,6 @@
var gulp = require('gulp'),
path = require('path'),
browserSync = require('browser-sync'),
imagemin = require('gulp-imagemin'),
jshint = require('gulp-jshint'),
argv = require('yargs').argv<% if (projectType == 'typo3Frontend') { %>
......@@ -28,7 +27,3 @@ gulp.task('images', function() {
}))
.pipe(gulp.dest(imagePath));
});
gulp.task('browser-sync', function() {
browserSync.init();
});
'use strict';
var gulp = require('gulp'),
settings = require('./settings'),
browserSync = require('browser-sync');
gulp.task('browser-sync', function() {
browserSync({
server: {
baseDir: '.'
}
});
});
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