Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit 914e1bb

Browse files
committed
bump psi
1 parent 648033a commit 914e1bb

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

gulpfile.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ gulp.task('default', ['clean'], function (cb) {
177177
});
178178

179179
// Run PageSpeed Insights
180-
// Update `url` below to the public URL for your site
181-
gulp.task('pagespeed', pagespeed.bind(null, {
182-
// By default, we use the PageSpeed Insights
183-
// free (no API key) tier. You can use a Google
184-
// Developer API key if you have one. See
185-
// http://goo.gl/RkN0vE for info key: 'YOUR_API_KEY'
186-
url: 'https://example.com',
187-
strategy: 'mobile'
188-
}));
180+
gulp.task('pagespeed', function (cb) {
181+
// Update the below URL to the public URL of your site
182+
pagespeed.output('example.com', {
183+
strategy: 'mobile',
184+
// By default we use the PageSpeed Insights free (no API key) tier.
185+
// Use a Google Developer API key if you have one: http://goo.gl/RkN0vE
186+
// key: 'YOUR_API_KEY'
187+
}, cb);
188+
});
189189

190190
// Load custom tasks from the `tasks` directory
191191
// try { require('require-dir')('tasks'); } catch (err) { console.error(err); }

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"gulp-useref": "^1.0.1",
2323
"jshint-stylish": "^1.0.0",
2424
"opn": "^1.0.0",
25-
"psi": "^0.1.2",
25+
"psi": "^1.0.4",
2626
"require-dir": "^0.1.0",
2727
"run-sequence": "^1.0.1"
2828
},

0 commit comments

Comments
 (0)