useLightningcss
此功能目前為實驗性質,可能會有所變動,不建議用於生產環境。請試用並在 GitHub 上分享您的意見回饋。
實驗性支援使用 Lightning CSS,這是一個以 Rust 撰寫的快速 CSS 捆綁器和壓縮器。
next.config.ts
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
experimental: {
useLightningcss: true,
},
}
export default nextConfig
這有幫助嗎?