# yeoman/grunt-usemin

[UNMAINTAINED] Replaces references to non-optimized scripts or stylesheets into a set of HTML files (or any templates/views)

Repository: https://github.com/yeoman/grunt-usemin
Canonical: https://ross.abutalabs.com/products/grunt-usemin
Language: JavaScript
License: BSD-2-Clause
License Family: permissive
Archived: true
Last push: 2017-04-08T01:52:13+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5019, "days_push": 3435, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1206, forks 326 (observed 2026-08-28T04:03:59.401508+00:00)

## What it is
grunt-usemin is a Grunt plugin that replaces references to non-optimized scripts, stylesheets, and other assets in HTML files or templates with their optimized (concatenated, minified, revisioned) versions. It dynamically generates Grunt subtasks for optimization steps like concat, uglify, and cssmin.

## Use cases
- replace script and stylesheet references in html with bundled optimized versions
- automate asset concatenation and minification in a grunt build
- rewrite asset urls to revisioned files after a build
- prepare grunt config for optimizing script blocks in html
- optimize css and js references in templates during a build pipeline

## When to choose
- you maintain a legacy grunt-based build that already uses usemin
- you need to rewrite html asset references to optimized bundles in an older yeoman workflow

## When to avoid
- starting a new project - the plugin is unmaintained and a maintainer is wanted
- using modern bundlers like webpack, vite, or rollup which handle this natively
- you need ongoing support or bug fixes

## Facets
- artifact type: plugin
- maturity: abandoned
- function: build-tool, developer-tools
- domain: web-development, frontend, developer-tools
- platform: cli
- tags: grunt, gruntplugin, asset-optimization, unmaintained, yeoman, html, css, javascript, nodejs

## Member repositories
- yeoman/grunt-usemin (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:59.401508+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:19:19.626073+00:00, confidence not recorded.
  - readme: https://github.com/yeoman/grunt-usemin (fetched 2026-08-28T04:03:59.401508+00:00, sha 511250684ded)
  - registry_npm: https://registry.npmjs.org/grunt-usemin (fetched 2026-08-29T12:27:13.646702+00:00, sha 273ebfe3104b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
