Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Update critical CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed May 12, 2017
1 parent 177dd76 commit 237c760
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions gulp/tasks/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ var pageDimensions = [{
}, {
width: 768,
height: 1024
}, {
width: 1024,
height: 1024
}, {
width: 1440,
height: 960
height: 1280
}];

// 'gulp styles:critical:archive' -- extract layout.archive critical CSS
Expand All @@ -70,7 +73,7 @@ gulp.task('styles:critical:archive', () => {
dest: paths.sourceDir + paths.includesFolderName + '/critical-archive.css',
minify: true,
extract: false,
ignore: ['@font-face','/print/',/url\(/,'.intro>.inner'] // defer loading of webfonts and background images
ignore: ['@font-face','/print/',/url\(/,'.popular-list'] // defer loading of webfonts and background images
}))
});

Expand All @@ -86,7 +89,7 @@ gulp.task('styles:critical:post', () => {
dest: paths.sourceDir + paths.includesFolderName + '/critical-post.css',
minify: true,
extract: false,
ignore: ['@font-face','/print/',/url\(/,'.intro>.inner'] // defer loading of webfonts and background images
ignore: ['@font-face','/print/',/url\(/,'.popular-list'] // defer loading of webfonts and background images
}))
});

Expand All @@ -101,6 +104,6 @@ gulp.task('styles:critical:home', () => {
dest: paths.sourceDir + paths.includesFolderName + '/critical-home.css',
minify: true,
extract: false,
ignore: ['@font-face','/print/',/url\(/,'.intro>.inner'] // defer loading of webfonts and background images
ignore: ['@font-face','/print/',/url\(/,'.popular-list'] // defer loading of webfonts and background images
}))
});
2 changes: 1 addition & 1 deletion src/_includes/critical-archive.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 237c760

Please sign in to comment.