Skip to content
You are currently viewing documentation for the canary channel of Next.js.

useLightningcss

This API is currently experimental and subject to change.

Experimental support for using Lightning CSS, a fast CSS bundler and minifier, written in Rust.

next.config.ts
import type { NextConfig } from 'next'
 
const nextConfig: NextConfig = {
  experimental: {
    useLightningcss: true,
  },
}
 
export default nextConfig