# NMFR/optimize-css-assets-webpack-plugin

A Webpack plugin to optimize \ minimize CSS assets.

Repository: https://github.com/NMFR/optimize-css-assets-webpack-plugin
Canonical: https://ross.abutalabs.com/products/optimize-css-assets-webpack-plugin
Language: JavaScript
License: MIT
License Family: permissive
Topics: webpack-plugin, minimization, minimizes, minimisation, css-processor, css-assets
Last push: 2022-12-07T17:53:46+00:00

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

## Adoption (not part of the score)
Stars 1133, forks 57 (observed 2026-08-28T04:03:42.851545+00:00)

## What it is
A Webpack plugin that searches for CSS assets during the Webpack build and optimizes/minimizes them, by default using cssnano. It also solves the CSS duplication problem caused by extract-text-webpack-plugin merging text chunks.

## Use cases
- minimize css assets in a webpack build
- remove duplicate css created by extract-text-webpack-plugin
- optimize css with cssnano during bundling
- strip comments from production css bundles
- run a custom css processor on webpack css output

## When to choose
- you are on webpack v4 and need css minification in your build
- you need to deduplicate css produced by extract-text-webpack-plugin
- you want to plug a custom css processor into the webpack pipeline

## When to avoid
- you use webpack v5 or above - use css-minimizer-webpack-plugin instead
- you use webpack v3 or below - use version 3.2.0 of this plugin instead
- you need actively developed css optimization tooling

## Facets
- artifact type: plugin
- maturity: maintenance
- function: build-tool, css-framework
- domain: web-development, frontend, developer-tools
- platform: -
- tags: webpack-plugin, css-minification, cssnano, asset-optimization, deprecated-for-webpack5, nodejs, web-server

## Member repositories
- NMFR/optimize-css-assets-webpack-plugin (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:42.851545+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:37:24.324592+00:00, confidence not recorded.
  - readme: https://github.com/NMFR/optimize-css-assets-webpack-plugin (fetched 2026-08-28T04:03:42.851545+00:00, sha b3d945655934)
  - registry_npm: https://registry.npmjs.org/optimize-css-assets-webpack-plugin (fetched 2026-08-29T12:42:07.490033+00:00, sha a791af8009fb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
