@nimpl/classnames-minifier

v4.1.1
  • Types
  • ESM
  • CJS

Library for configuring style modules to generate compressed classes

License
MIT
Install Size
14.7 kB/-
Vulns
0
Published

Get started

$npm install @nimpl/classnames-minifier
$pnpm add @nimpl/classnames-minifier
$yarn add @nimpl/classnames-minifier
$bun add @nimpl/classnames-minifier
$deno add npm:@nimpl/classnames-minifier
$vlt install @nimpl/classnames-minifier

Readme

@nimpl/classnames-minifier

Library for configuring style (css/scss/sass) modules to generate compressed classes (.header -> .a, .nav -> .b, ..., .footer -> .aad, etc.) with support for changes and rebuilding without clearing the built application. The package itself synchronizes minified classnames with components of the application compiled earlier.

Visit https://nimpl.dev/docs/classnames-minifier to view the full documentation.

Installation

Using npm:

npm i @nimpl/classnames-minifier

Usage

import { type NextConfig } from "next";
import classNamesMinifier from "@nimpl/classnames-minifier";

const withClassNamesMinifier = classNamesMinifier({
  /* plugin options here */
});

const nextConfig: NextConfig = withClassNamesMinifier({
  /* next options here */
});

export default nextConfig;
npm run build --webpack

License

MIT