@animus-ui/next-plugin
v0.1.0
Published
Animus static CSS extraction for Next.js (webpack)
Maintainers
Readme
@animus-ui/next-plugin
Static CSS extraction for Next.js. Wraps next.config to integrate the Animus extraction pipeline via webpack.
Install
npm install @animus-ui/next-plugin @animus-ui/systemSetup
// next.config.mjs
import { withAnimus } from '@animus-ui/next-plugin';
const nextConfig = {
// your existing Next.js config
};
export default withAnimus(nextConfig, {
system: './src/ds.ts',
});What It Does
- Adds a webpack loader that transforms
@animus-ui/systembuilder chains into static CSS - Emits extracted CSS as a separate asset with
@layerordering - Works with both App Router and Pages Router
- Supports RSC — no runtime style injection means server components work out of the box
License
MIT
