uglify = require('gulp-uglify'),
inject = require('gulp-inject'),
jshint = require('gulp-jshint'),
- angularFilesort = require('gulp-angular-filesort')
-bs = require('browser-sync').create(),
+ angularFilesort = require('gulp-angular-filesort'),
+ bs = require('browser-sync').create(),
gls = require('gulp-live-server'),
concat = require('gulp-concat'),
_ = require('lodash'),
gulp.task('browser-sync', ['serve'], function() {
bs.init(null, {
- proxy: "http://127.0.0.1:3000",
+ proxy: {
+ target: "http://127.0.0.1:3000",
+ ws: true
+ },
browser: "google chrome",
- port: "7000",
- ghostMode: false
- });
-});
+ //port: "7000",
+ ghostMode: false,
+ })
+})
gulp.task('parse-option', function(cb) {
return exec('ruby create-json-file.rb', {cwd: './util/'}, function(err) {
gulp.task('default', function(callback) {
runSequence('inject', 'serve', 'browser-sync', 'watch', callback)
- //['inject', 'browser-sync', 'watch']);
+ //['inject', 'browser-sync', 'watch']);
})
gulp.task('deploy', function(callback) {
runSequence('build', 'set-production', 'serve', callback)