Created
March 1, 2017 02:34
-
-
Save seanogdev/49947e6ce35196221659b3ee8193021a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var critical = require('critical'); | |
var HOME_URL = 'http://dev.lovindublin.com/'; | |
var ART_URL = HOME_URL + 'feature/article-name'; | |
var config = { | |
home: { | |
src: HOME_URL, | |
dest: dest + '/css/critical/home.css', | |
include: ['.fl body'], | |
minify: true, | |
}, | |
article: { | |
src: ART_URL, | |
dest: dest + '/css/critical/article.css', | |
include: ['.fl body'], | |
minify: true, | |
} | |
}; | |
gulp.task('critical:home', function(){ | |
return critical.generate(config.home); | |
}); | |
gulp.task('critical:article', function(){ | |
return critical.generate(config.article); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment