Skip to content

Instantly share code, notes, and snippets.

@andersonaguiar
Forked from ahmadawais/gulpfile.js
Created June 30, 2016 02:41
Show Gist options
  • Save andersonaguiar/c412bcafdbf6900994079a7d1902a81d to your computer and use it in GitHub Desktop.
Save andersonaguiar/c412bcafdbf6900994079a7d1902a81d to your computer and use it in GitHub Desktop.
Gulp: Useing ngrok with BrowserSync
// first run npm install ngrok - then put var ngrok = require('ngrok'); at the top of your gulpfile
var ngrok = require('ngrok');
var browserSync = require('browser-sync')
browserSync({
server: "./app"
}, function (err, bs) {
ngrok.connect(bs.options.get('port'), function (err, url) {
// https://757c1652.ngrok.com -> 127.0.0.1:8080
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment