Grunt plugin for minifying HTML class and id attributes in CSS and HTML files while generating JavaScript map files. Current stable version 0.3.2 (last release unknown). It is a legacy Grunt 0.4.x plugin that renames CSS class names and HTML ids to shorter forms, producing a mapping file for use in development. Key differentiator: targeted at front-end optimization for HTML/CSS with J_ prefix filtering. No longer actively maintained; deprecated in favor of modern webpack or PostCSS-based minification.
npm install grunt-class-id-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Gruntfile configuration that minifies CSS class and HTML id attributes, filtering out names starting with J_.
Migrate to PostCSS-based minification or use webpack with css-minimizer-webpack-plugin.
Remove scssMapFilter usage; functionality is no longer supported.
Define both filters in options even if just returning true.
Ensure src patterns match *.html and *.css.
Run npm install grunt-class-id-minifier --save-dev and add loadNpmTasks in Gruntfile.
Ensure options include both jsMapFile and jsMapDevFile string paths.
Set jsMapFile and jsMapDevFile to valid file paths.