Skip to content

Instantly share code, notes, and snippets.

@amazingrando
Created June 26, 2017 19:50
Show Gist options
  • Save amazingrando/e0be43c27a11c585e7b4b37684002129 to your computer and use it in GitHub Desktop.
Save amazingrando/e0be43c27a11c585e7b4b37684002129 to your computer and use it in GitHub Desktop.
ngrok performance
/**
* @file
* Frontend Performance tasks
*/
/* eslint no-console: 0 */
/* eslint no-process-exit: 0 */
/* globals require, process */
// Performance Testing
var gulp = require('gulp');
var ngrok = require('ngrok');
// -----------------------------------------------------------------------------
// Initialize a public tunnel to access your local site.
// -----------------------------------------------------------------------------
gulp.task('ngrok', ['browserSync'], function () {
'use strict';
return ngrok.connect(3000, function (err_ngrok, url) {
console.log('ngrok - serving your site from ' + url);
console.log('Enter that URL at https://developers.google.com/speed/pagespeed/insights/');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment