useLightningcss
为使用 Lightning CSS 提供实验性支持,这是一个用 Rust 编写的快速 CSS 打包和压缩工具。
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