Ffloriel
State of CSS 2020: Layout Resources Collection
Native virtual-scroller element for the web
Strapi 3 on Google cloud run
Show HN: Initialize a NPM package with CI and doc website setup
Re:Show HN: Remove unused css with Purgecss
on Sunday November 19, 2017 @07:21AM (#15733587)
There is also a section in the readme explaining the differences with the most used libraries: https://github.com/FullHuman/purgecss#differences-with
Re:Show HN: Remove unused css with Purgecss
on Sunday November 19, 2017 @07:20AM (#15733584)
Uncss works the following way:
The HTML files are loaded by jsdom and JavaScript is executed.
All the stylesheets are parsed by PostCSS.
document.querySelector filters out selectors that are not found in the HTML files.
The remaining rules are converted back to CSS
Purgecss will not emulate the dom and execute javascript. Instead, it will read your files, determined the selectors in it and then remove the ones that are not used. A much simpler process that will translate in better performance.