forked from jrcryer/grunt-pagespeed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
32 lines (29 loc) · 789 Bytes
/
Copy pathGruntfile.coffee
File metadata and controls
32 lines (29 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# grunt-pagespeed
# http://www.jamescryer.com/grunt-pagespeed
#
# Copyright (c) 2013 James Cryer
# http://www.jamescryer.com
# Licensed under the MIT license.
#
'use strict'
module.exports = (grunt) ->
grunt.initConfig
pagespeed:
options:
nokey: true
url: "http://developers.google.com"
single:
options:
url: "https://developers.google.com/speed/docs/insights/v1/getting_started"
locale: "en_GB"
strategy: "desktop"
threshold: 80
paths:
options:
paths: ["/speed/docs/insights/about", "/speed/docs/insights/v1/getting_started"]
locale: "en_GB"
strategy: "mobile"
threshold: 62
grunt.loadTasks 'tasks'
grunt.registerTask 'default', ['pagespeed']