File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1919Existing packages like
2020[ get-css] ( https://github.com/cssstats/cssstats/tree/master/packages/get-css )
2121look at a server-generated piece of HTML and get all the ` <link> ` and ` <style> `
22- tags from it. This works fine for 100% server rendered pages, but apps that
23- employ style injection with JavaScript will not be covered .
22+ tags from it. This works fine for 100% server rendered pages, and pages with
23+ CSS-in-JS styling .
2424
2525### Solution
2626
2727This module uses an instance of Chromium to render a page. This has the benefit
2828that most of the styles can be rendered, even when generated by JavaScript. The
2929[ Puppeteer CSSCoverage API] ( https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#coveragestartcsscoverageoptions )
3030is the power behind finding most of the CSS. Additionally, the
31- ` document.styleSheets ` API is used.
31+ ` document.styleSheets ` API is used to get CSS-inJS styling .
3232
3333## Installation
3434
You can’t perform that action at this time.
0 commit comments