Grunt Revizor

screenshot of Grunt Revizor

Grunt plugin for compression CSS classes and identifiers

Overview

Grunt-revizor is an innovative Grunt plugin designed to significantly reduce the size of your CSS files by compressing class names and identifiers. By transforming lengthy and cumbersome identifiers into concise symbols, it streamlines your code and enhances the efficiency of your web projects. This tool is particularly useful for developers looking to optimize their CSS without manually rewriting selectors.

This plugin is easy to integrate into your existing Grunt setup, making it accessible even for those new to Grunt. With its robust features, grunt-revizor not only simplifies class management but also ensures that your files remain organized and manageable during the minification process.

Features

  • Compression of Class Names: Automatically reduces lengthy class names and identifiers into short, manageable symbols, minimizing file size and enhancing performance.

  • Custom Prefix Options: Easily specify the prefix for your compressed class names and file names, allowing for better organization of your minified files.

  • Support for Non-CSS Selectors: Minify class names and IDs that are not present in CSS files by defining them in the options, ensuring no selectors are overlooked.

  • Control Directory Structure: Choose whether to retain the original directory structure or flatten the output, giving you flexibility in how compressed files are organized.

  • Notification on Ignored Selectors: Get alerts for any selectors matching the specified prefix that were ignored during the minification process, helping maintain oversight on your styles.

  • Smart String Handling: Automatically adds required symbols to strings without needing to explicitly include them, simplifying the minification process.

  • Minified File Naming: Generates new compressed file names by automatically adding a suffix to the original name, clearly indicating which files are minified while retaining the original for reference.

  • Efficient Integration: Designed to work seamlessly with existing Grunt setups through straightforward installation and configuration, allowing new users to adopt it quickly.

grunt
Grunt

Grunt is a popular JavaScript task runner that automates repetitive tasks like minification, compilation, and testing, allowing developers to focus on writing code.