UnCSS ✨
UnCSS is a tool that removes unused CSS from your stylesheets. ✅
It works across multiple files and supports Javascript-injected CSS. 🗂
How❓🤔
1️⃣ The HTML files are loaded by jsdom and JavaScript is executed.
2️⃣ All the stylesheets are parsed by PostCSS.
3️⃣ document.querySelector filters out selectors that are not found in the HTML files.
4️⃣ The remaining rules are converted back to CSS.
https://t.me/pgimg/43
[ Website ] : https://uncss-online.com/
[ Github ] : https://github.com/giakki/uncss
〰〰〰〰〰〰
#FrontEnd #Css #Tools
@ProgrammingTip
Post #327
1.85K