useLightningcss
为使用 Lightning CSS 提供实验性支持,这是一个用 Rust 编写的快速 CSS 打包和压缩工具。
next.config.ts
TypeScript
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
experimental: {
useLightningcss: true,
},
}
export default nextConfig