Close GH-13: Add PageSpeed task. Closes #12.
parent
288189cd6f
commit
a4289608a0
|
@ -7,6 +7,9 @@ var reload = browserSync.reload;
|
|||
// load plugins
|
||||
var $ = require('gulp-load-plugins')();
|
||||
|
||||
// hosted URL for your page
|
||||
var hostedUrl = '';
|
||||
|
||||
gulp.task('styles', function () {
|
||||
return gulp.src('app/styles/main.scss')
|
||||
.pipe($.rubySass({
|
||||
|
@ -64,6 +67,10 @@ gulp.task('fonts', function () {
|
|||
.pipe($.size());
|
||||
});
|
||||
|
||||
gulp.task('pagespeed', function () {
|
||||
opn('https://developers.google.com/speed/pagespeed/insights/?url=' + encodeURIComponent(hostedUrl));
|
||||
});
|
||||
|
||||
gulp.task('clean', function () {
|
||||
return gulp.src(['.tmp', 'dist'], { read: false }).pipe($.clean());
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue