Skip to content

Instantly share code, notes, and snippets.

@isitannarli
Forked from ahmadawais/gulpfile.js
Created May 8, 2016 15:08
Show Gist options
  • Select an option

  • Save isitannarli/5be03849df4205ea672233723226317a to your computer and use it in GitHub Desktop.

Select an option

Save isitannarli/5be03849df4205ea672233723226317a 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