A function that takes content (HTML/JS/PHP/etc) and CSS, and returns only the used CSS. PurifyCSS does not modify the original CSS files. You can write to a new file, like minification. If your application is using a CSS framework, this is especially useful as many selectors are often unused. Statically analyzes your code to pick up which selectors are used. The CLI currently does not support file patterns. Remove unused CSS code from your stylesheet. PurifyCSS is meant to be installed via npm and built into your build process using tools like Grunt, Gulp or Webpack. However if you're using a different development stack or building your sites with a CMS like Wordpress, you can use the online tool to clean up your stylesheet. Especially if you are using CSS frameworks like Bootstrap or a multi-purpose Wordpress theme, chances are you are actually using less than 20% of the defined CSS rules.

Features

  • Scans your source code (HTML and JS) for used selectors
  • It removes the unused code from your CSS files
  • You can write to a new file, like minification
  • If your application is using a CSS framework, this is especially useful
  • Statically analyzes your code to pick up which selectors are used
  • It searches through for used classes (HTML, JS, PHP, ERB, Templates, anything that uses CSS selectors)

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow PurifyCSS

PurifyCSS Web Site

Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Start Free
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
2
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5

User Reviews

  • I am looking for a developer who can develop this ebillinfo.pk kind of website, if someone interesting feel free to contact me.
  • I am using this plugin, this is very helpful to increase website speed. It increases Google Speed Insight score for my site welltechy.com
Read more reviews >

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript HTML XHTML, JavaScript WordPress Themes

Registered

2021-06-11