NextJS中文文档 - UseLightningcss
使用 Lightning CSS 的实验性支持,这是一个用 Rust 编写的快速 CSS 打包器和压缩器。
ts
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
experimental: {
useLightningcss: true,
},
}
export default nextConfig
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
js
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
useLightningcss: true,
},
}
module.exports = nextConfig
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8