Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Commit 5d6911b

Browse files
author
Rob Dodson
committed
Update psi
1 parent 39ae78e commit 5d6911b

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

app/templates/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"jshint-stylish": "^0.4.0",
3131
"merge-stream": "^0.1.6",
3232
"opn": "^1.0.0",
33-
"psi": "^0.1.2",
33+
"psi": "^1.0.4",
3434
"require-dir": "^0.1.0",
3535
"run-sequence": "^0.3.6"<% } else { %>
3636
"connect-livereload": "^0.5.2",

app/templates/gulpfile.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,15 @@ gulp.task('default', ['clean'], function (cb) {
219219

220220
// Run PageSpeed Insights
221221
// Update `url` below to the public URL for your site
222-
gulp.task('pagespeed', pagespeed.bind(null, {
223-
// By default, we use the PageSpeed Insights
224-
// free (no API key) tier. You can use a Google
225-
// Developer API key if you have one. See
226-
// http://goo.gl/RkN0vE for info key: 'YOUR_API_KEY'
227-
url: 'https://example.com',
228-
strategy: 'mobile'
229-
}));
222+
gulp.task('pagespeed', function (cb) {
223+
// Update the below URL to the public URL of your site
224+
pagespeed.output('example.com', {
225+
strategy: 'mobile',
226+
// By default we use the PageSpeed Insights free (no API key) tier.
227+
// Use a Google Developer API key if you have one: http://goo.gl/RkN0vE
228+
// key: 'YOUR_API_KEY'
229+
}, cb);
230+
});
230231

231232
// Load custom tasks from the `tasks` directory
232233
try { require('require-dir')('tasks'); } catch (err) {}

0 commit comments

Comments
 (0)