Skip to content

Commit 4e2efe5

Browse files
committed
Use path alias for SCSS foundation in Vite config
- on windows, we get error (we recently moved from webpack to vite-based worklow) ├── apps │ └── editor │ ├── package.json │ ├── scripts │ │ └── build.mjs │ └── vite.config.ts ├── install.ps1 └── install.sh
1 parent 10c639d commit 4e2efe5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎apps/editor/vite.config.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,7 @@ const create_view_config = (
197197
},
198198
preprocessorOptions: {
199199
scss: {
200-
additionalData: `@use "${path
201-
.resolve(ui_dir, 'styles/foundation')
202-
.replace(/\\/g, '/')}" as *;`
200+
additionalData: `@use "@ui/styles/foundation" as *;`
203201
}
204202
}
205203
},

0 commit comments

Comments
 (0)