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