From 1a5694dd13fa95262536126007c3e81a6f99cc55 Mon Sep 17 00:00:00 2001 From: jnachtigall Date: Thu, 12 Dec 2024 06:23:41 +0100 Subject: [PATCH] [mantine.dev] Improve sass guide for Windows (#7238) Not sure this fix also works for PowerShell, but is required for git bash to resolve the path the the _mantine sass file. --- apps/mantine.dev/src/pages/styles/sass.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mantine.dev/src/pages/styles/sass.mdx b/apps/mantine.dev/src/pages/styles/sass.mdx index f65b00eb24..266c549d13 100644 --- a/apps/mantine.dev/src/pages/styles/sass.mdx +++ b/apps/mantine.dev/src/pages/styles/sass.mdx @@ -35,7 +35,7 @@ export default defineConfig({ preprocessorOptions: { scss: { api: 'modern-compiler', - additionalData: `@use "${path.join(process.cwd(), 'src/_mantine')}" as mantine;`, + additionalData: `@use "${path.join(process.cwd(), 'src/_mantine').replace(/\\/g, '/')}" as mantine;`, }, }, }, @@ -154,7 +154,7 @@ export default { // ...other config sassOptions: { implementation: 'sass-embedded', - additionalData: `@use "${path.join(process.cwd(), '_mantine')}" as mantine;`, + additionalData: `@use "${path.join(process.cwd(), '_mantine').replace(/\\/g, '/')}" as mantine;`, }, }; ```