Created
February 26, 2016 18:34
-
-
Save ben-w-smith/6b9fe59b481969d55085 to your computer and use it in GitHub Desktop.
Gulp with BrowserSync with ngrok
This file contains hidden or 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 browserSync = require('browser-sync').create(); | |
var ngrok = require('ngrok'); | |
gulp.task('default', function() { | |
browserSync.init({ | |
server: { | |
baseDir: "./public" | |
} | |
}, function(err, bs) { | |
ngrok.connect(bs.options.get('port'), function(err, url) { | |
console.log(' -------------------------------------'); | |
plugins.util.log('\r', ' NGROK:', plugins.util.colors.magenta(url)); | |
console.log(' -------------------------------------'); | |
}); | |
}); | |
// watch tasks go here | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
console.log and plugins.util.log not print enything.