question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

minimalcss won't return any output if javascript breaks

See original GitHub issue

Hi, @peterbe,

I am running minimalcss in both command line and in node using the following config:

   ignoreJSErrors: true,
   ignoreCSSErrors: true,
   withoutJavascript: true,
   ignoreRequestErrors: true,
   puppeteerArgs: ['--no-sandbox']

in case the page is having a JS error while rendering, instead of the minimal css it throws an exception.

Same this at minimalcss.app website.

check the following screenshot: image

is there a config to avoid this ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
peterbecommented, Sep 21, 2020

Try 0.11.0 now. Some other minor changes in there.

2reactions
peterbecommented, Sep 21, 2020

So, I guess we need a new release. I’m on it. Today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

peterbe/minimalcss: Extract the minimal CSS used in ... - GitHub
A Node library to extract the minimal CSS used in a set of URLs with puppeteer. Used to find what minimal CSS is...
Read more >
Handling common JavaScript problems - MDN Web Docs
Note: The easiest solution is to declare the iteration variable with let instead of var —the value of i associated with the function...
Read more >
Why doesn't JavaScript newlines work inside HTML?
js to be able to try out JS scripts from inside vim but when I run this script I get the error "...
Read more >
The output of functions that don't return anything should not be ...
If a function does not return anything, it makes no sense to use its output. Specifically, passing it to another function, or assigning...
Read more >
Top 10 Most Common Node.js Developer Mistakes - Toptal
This is because calling the callback doesn't automatically end the execution of the current function. If the first “return” was commented out, passing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found