useLightningcss
實驗性支援使用 Lightning CSS,這是一個以 Rust 編寫的高速 CSS 打包工具與壓縮器。
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
experimental: {
useLightningcss: true,
},
}
export default nextConfig
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
useLightningcss: true,
},
}
module.exports = nextConfig