Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not finishing in Docker environment #340

Open
lexdubyna opened this issue Mar 7, 2022 · 1 comment
Open

not finishing in Docker environment #340

lexdubyna opened this issue Mar 7, 2022 · 1 comment

Comments

@lexdubyna
Copy link

Hello.
I'm trying to use rollup-critical-plugin (basic setup) and standalone penthouse and it seems that the process hangs in the Docker environment (node:14.19.0)
In both cases with logging I see the same result

  penthouse:browser no browser instance, launching new browser.. +0ms
  penthouse:browser browser ready +215ms
  penthouse call generateCriticalCssWrapped +0ms
  penthouse:core Penthouse core start +0ms
  penthouse:core parse ast START +1ms
  penthouse:core parse ast DONE (with 0 errors) +30ms
  penthouse:preformatting:nonMatchingMediaQueryRemover BEFORE +0ms
  penthouse:preformatting:nonMatchingMediaQueryRemover matchConfig: {
  penthouse:preformatting:nonMatchingMediaQueryRemover   "type": "screen",
  penthouse:preformatting:nonMatchingMediaQueryRemover   "width": "1300px",
  penthouse:preformatting:nonMatchingMediaQueryRemover   "height": "900px"
  penthouse:preformatting:nonMatchingMediaQueryRemover }
  penthouse:preformatting:nonMatchingMediaQueryRemover keepLargerMediaQueries: false +0ms
  penthouse:preformatting:nonMatchingMediaQueryRemover KEEP: (all and (max-width:768px)),  +3ms
  penthouse:core stripped out non matching media queries +4ms
  penthouse:core cleanupAndExit +30s

Also CPU usage of Docker virtual machine is almost 70% (with my 6 cores / 12 threads Intel processor).
When I stop the container, it's back to normal.
Please help.

@pocketjoso
Copy link
Owner

Hi,
I'm not familiar at all with this set up, but from the debug logs you posted it seems like the page you were trying to generate critical css for never loaded. Do you have the same behavior if you try to generate critical css for another website?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants