A Grunt.js multi-task that minifies CSS and JS files with intelligent caching. It uses UglifyJS for JavaScript and CSSO (by Yandex) for CSS, with automatic @import inlining and url() rewriting. The key differentiator is its .build-catalog.json catalog that stores file checksums and last compilation dates, skipping re-minification of unchanged files to save CPU time and preserve modification timestamps. Version 0.0.3 is the latest release, with no recent updates. This plugin also supports versioned URL rewriting for effective cache busting.
npm install grunt-mailru-frontendNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic Gruntfile configuration for JS and CSS minification tasks using grunt-mailru-frontend.
Use modern alternatives like grunt-contrib-uglify and grunt-contrib-cssmin, or migrate to other build tools.
Set 'targetdir' explicitly to the desired catalog location or use 'onlyCatalog: true' to generate catalog only.
Use 'frontend' instead of 'frontent' in Gruntfile config.
Set 'srcWebroot' to the root of your source files to resolve absolute paths.
Use a dedicated JS minifier plugin or tool that supports ES6+.
Add 'grunt.loadNpmTasks('grunt-mailru-frontend');' in your Gruntfile.Ensure you have a 'frontend' config object (not 'frontent' or other).
Check file paths in the 'files' configuration; use absolute paths or adjust srcWebroot.