Skip to content

useLightningcss

实验性地支持使用 Lightning CSS,这是一种用 Rust 编写的快速 CSS 打包器和压缩器。

¥Experimental support for using Lightning CSS, a fast CSS bundler and minifier, written in Rust.

ts
import type { NextConfig } from 'next'

const nextConfig: NextConfig = {
  experimental: {
    useLightningcss: true,
  },
}

export default nextConfig
js
/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    useLightningcss: true,
  },
}

module.exports = nextConfig

Next.js v15.2 中文网 - 粤ICP备13048890号