mui / pigment-css

Pigment CSS is a zero-runtime CSS-in-JS library that extracts the colocated styles to their own CSS files at build time.
MIT License
389 stars 18 forks source link

[nextjs] Update the withPigment API to accept config #114

Open brijeshb42 opened 3 weeks ago

brijeshb42 commented 3 weeks ago

through pigment key from the nextConfig object itself instead of as a 2nd argument to the call. This is a standard approach followed by other nextjs plugins

Fixes: #83 Fixes: #88

brijeshb42 commented 1 week ago

I'd say it deprecates the current API as it can still take the input as second argument. But I'll update the docs to note this.