sassOptions
sassOptions allow you to configure the Sass compiler.
Good to know
sassOptions are not typed outside of implementation because Next.js does not maintain the other possible properties.
Last updated
sassOptions allow you to configure the Sass compiler.
import type { NextConfig } from 'next'
const sassOptions = {
additionalData: `
$var: red;
`,
}
const nextConfig: NextConfig = {
sassOptions: {
...sassOptions,
implementation: 'sass-embedded',
},
}
export default nextConfigGood to know
sassOptions are not typed outside of implementation because Next.js does not maintain the other possible properties.
Last updated