Skip to content

alexdln/nimpl-classnames-minifier

Repository files navigation

@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

About

Library for configuring style (css/scss/sass) modules to generate compressed classes in next.js

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published