gulp.task('sync', function() {
browSync ({
server : {
baseDir: 'app'
},
port: 88,
notify: false,
host: '192.168.1.1'
});
})
[17:13:13] Using gulpfile ~\Desktop\work\altair\gulpfile.js
[17:13:13] Starting 'watcher'...
[17:13:13] Finished 'watcher' after 12 ms
[17:13:13] Starting 'sync'...
[17:13:13] Finished 'sync' after 100 ms
[17:13:13] Starting 'default'...
[17:13:13] Finished 'default' after 46 μs
[Browsersync] Access URLs:
----------------------------------
Local: http://localhost:88
External: http://192.168.1.1:88
----------------------------------
UI: http://localhost:3001
UI External: http://localhost:3001
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
gulp.task('browser-sync', function() {
browserSync.init({
server: {
baseDir: "./"
}
});
});
gulp.task('js:libraries', function(done) {
return gulp.src('js/libraries/*.js')
.pipe(plumber())
.pipe(uglify())
.pipe(gulp.dest('build/js/libraries'))
.pipe(server.stream());
done();
});