Skip to content

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
next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    useLightningcss: true,
  },
}
 
module.exports = nextConfig