useLightningcss
此功能目前处于实验阶段,可能会发生变化,不建议用于生产环境。请试用并在 GitHub 上分享您的反馈。
实验性支持使用 Lightning CSS,一个用 Rust 编写的快速 CSS 打包器和压缩器。
next.config.ts
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
experimental: {
useLightningcss: true,
},
}
export default nextConfig
这是否有帮助?