A Grunt.js multi-task for CSS and JS minification that respects file modification dates to avoid unnecessary re-minification. Version 2.0.4 uses UglifyJS for JavaScript minification and CSSO for CSS minification, with automatic @import inlining and url() rewriting. Unlike basic minifiers, it stores a .build-catalog.json file to track state and checksums, saving CPU time and preserving modification dates for effective caching. Release cadence is low (last release years ago). Key differentiator: it skips re-minification of unchanged files and supports versioned URL schemes for cache busting.
npm install grunt-frontendNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows minimal Grunt configuration with frontend-js and frontend-css tasks including global frontend config and loading the plugin.
Use with Grunt 0.4.x or fork/upgrade the plugin.
Consider migrating to modern tools like webpack, gulp, or direct use of terser/postcss.
Keep the catalog file in the project and include in .gitignore if needed.
Use 'frontend' for global config, not 'frontent'.
Add grunt.loadNpmTasks('grunt-frontend'); in Gruntfile.js.Ensure src paths in @import are relative to srcWebroot or use absolute paths correctly.
Use array format: files: [{ src: 'src/*.css', dest: 'out/css' }].