-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(critical-css): Added critical css support
Added the task critical css to be able to run from any theme
- Loading branch information
Showing
4 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
var exec = require('child_process').exec, | ||
epiq_dir = '../../../../../../profiles/recruiter/themes/epiq', | ||
gulpconfig = '../../gulpconfig.json', | ||
args = ""; | ||
|
||
var yargs = require('yargs').argv; | ||
if (yargs.site) { | ||
args = '--site' + yargs.site; | ||
} | ||
if (yargs.csspath) { | ||
args = '--csspath' + yargs.csspath; | ||
} | ||
|
||
var cmd = 'cd node_modules/recruiter_epiq_deps && gulp critical-css --epiq_dir ' + epiq_dir + ' --gulpconfig ' + gulpconfig + ' ' + args; | ||
|
||
exec(cmd, function (error, stdout, stderr) { | ||
// command output is in stdout | ||
console.log(stdout); | ||
}); |