Created
June 26, 2017 19:50
-
-
Save amazingrando/e0be43c27a11c585e7b4b37684002129 to your computer and use it in GitHub Desktop.
ngrok performance
This file contains 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
/** | |
* @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