Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Render the page takes a long time #63

Closed
petersolopov opened this issue Jul 22, 2018 · 0 comments · Fixed by #64
Closed

Render the page takes a long time #63

petersolopov opened this issue Jul 22, 2018 · 0 comments · Fixed by #64

Comments

@petersolopov
Copy link
Contributor

petersolopov commented Jul 22, 2018

Hi there! Thanks for the great plugin!

I have performance issue. My screenshots tests take a very long time. I started digging it and I found out the reason. The plugin has middleware that renders HTML pages for test. It has a call webpackStats.toJson() that takes in my case around 1s.

We need only assetsByChunkName information in stats for render html. webpackStats.toJson(options) provide passing settings: docs. With this paramswebpackStats.toJson({ chunk: false, modules: false }) the call takes no time.

I've created PR with this changes

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

Successfully merging a pull request may close this issue.

1 participant