Back to Storybook

Nextjs Styling Sass Config

docs/_snippets/nextjs-styling-sass-config.md

10.3.6618 B
Original Source
js
import path from 'node:path';

export default {
  // Any options here are included in Sass compilation for your stories
  sassOptions: {
    includePaths: [path.join(process.cwd(), 'styles')],
  },
};
ts
import type { NextConfig } from 'next';

import * as path from 'node:path';

const config: NextConfig = {
  // Any options here are included in Sass compilation for your stories
  sassOptions: {
    includePaths: [path.join(process.cwd(), 'styles')],
  },
};

export default config;