本页还没有译文
本页 3 段还没译成한국어,下面显示的是英文原文。sassOptions
还没翻译译自英文(nextjs.org)本页 3 段都还没译
sassOptions allow you to configure the Sass compiler.
next.config.ts
import type { NextConfig } from 'next'
const sassOptions = {
additionalData: `
$var: red;
`,
}
const nextConfig: NextConfig = {
sassOptions: {
...sassOptions,
implementation: 'sass-embedded',
},
}
export default nextConfignext.config.js
/** @type {import('next').NextConfig} */
const sassOptions = {
additionalData: `
$var: red;
`,
}
const nextConfig = {
sassOptions: {
...sassOptions,
implementation: 'sass-embedded',
},
}
module.exports = nextConfigGood to know
sassOptionsare not typed outside ofimplementationbecause Next.js does not maintain the other possible properties.- The
functionsproperty for defining custom Sass functions is only supported with webpack. When using Turbopack, custom Sass functions are not available because Turbopack's Rust-based architecture cannot directly execute JavaScript functions passed through this option.
AI 翻译查看英文原文