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)
License
MIT LicenseFollow PurifyCSS
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