-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.json
43 lines (38 loc) · 1.13 KB
/
test.json
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
33
34
35
36
37
38
39
40
41
42
43
critical: {
typography: {
options: {
base: './',
css: [
'css/main.css',
'css/normalize.css'
],
width: 1200,
height: 800
},
src: 'typography.html',
dest: 'typography-critical.html'
}
},
processhtml: {
files: {
expand: true, // Enable dynamic expansion.
cwd: './', // Src matches are relative to this path.
src: ['*.html'], // Actual pattern(s) to match.
dest: 'dist/', // Destination path prefix. }
},
// Compare the size of the listed files
compare_size: {
files: [
'dist/js/*.js',
'dist/css/*.css'
],
options: {
// Location of stored size data
cache: '.sizecache.json',
// Compressor label-function pairs
compress: {
gz: function (fileContents) {
return require('gzip-js').zip(fileContents, {}).length;
}
}
},