PurgeCSS 2.0 Introduction: Remove Unused CSS From Your Project

Written by Ffloriel | Published 2020/01/19
Tech Story Tags: css3 | purge-css | html | frontend | website-development | software-development | how-to-increase-page-speed | css

TLDR Trimming your CSS will make your website load faster because the browser will request less code and less CSS will be parsed. PurgeCSS 2.0 is the second major version bump for Purge CSS. The new version of Purgecss works asynchronously. It is now possible to remove unused CSS variables that were still deactivated by default, but they are now available by default. A function that takes the content of a file and returns the list of potential CSS selectors can be used in your CSS file.via the TL;DR App

no story

Published by HackerNoon on 2020/01/19