Penthouse error blocks generating file
See original GitHub issueHi, I get following error where I sadly have no idea where the problem is:
Unhandled rejection TypeError: Bad argument
at TypeError (native)
at ChildProcess.spawn (internal/child_process.js:289:26)
at exports.spawn (child_process.js:380:9)
at generateCriticalCss (/Users/nils/repos/schoenwaldnils/blog/node_modules/penthouse/lib/index.js:95:10)
at process._tickCallback (internal/process/next_tick.js:103:7)
I use jekyll and generate the site to _site
where the index.html
lies.
I try to generate the main-critical.css
.
My gulp task:
gulp.task('critical', function (cb) {
critical.generate({
inline: false,
base: '_site',
src: 'index.html',
dest: 'build/main-critical.css',
width: 320,
height: 480,
minify: true,
});
});
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
penthouse - Bountysource
Generate critical css file via two source .css files and a website URL; Block website stylesheets and add the generated critical css only....
Read more >Extract critical CSS - web.dev
Learn how to improve render times with critical CSS technique and how to choose the best tool for your project.
Read more >critical - npm
Take a look at this Gulp project which demonstrates using Critical to generate and inline critical-path CSS. It also includes a mini-tutorial ...
Read more >How To Use Critical CSS To Speed Up Website Performance
Critical CSS is kind of like the opposite of render blocking CSS – the ... Penthouse to do the heavy lifting of generating...
Read more >Critical CSS in WordPress: What It Is and How to Optimize ...
In other words, critical CSS is key to optimizing performance. Before rendering the page, your browser needs to download and parse the CSS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pocketjoso Thanks for your work!
Regarding the install error, I just fixed a (new) bug with the missing
config.json
file in 0.11.11 - so if you re-install criticial/penthouse you should get the fix for this problem.