UnCSS your CSS! Removing Unused CSS with PostCSS & Parcel

DesignCourse on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI13 min

About this video

Shows how to remove unused CSS rulesets from a project by running UnCSS as a PostCSS plugin inside Parcel, comparing the HTML against the stylesheet. It is aimed at developers who already work with front-end build tools.

What you’ll learn

  • Configure UnCSS as a PostCSS plugin in a Parcel project
  • Remove unused CSS rulesets by comparing markup against stylesheets
  • Compare the resulting CSS file size before and after cleanup