From 0f334f900c183e4faba8534eff4ff8b7b2e5b857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sat, 1 Apr 2023 18:35:03 +0900 Subject: [PATCH] build(#10336): normalize path for Windows --- packages/frontend/.storybook/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/.storybook/main.ts b/packages/frontend/.storybook/main.ts index 82e2473e9..8a1eb7066 100644 --- a/packages/frontend/.storybook/main.ts +++ b/packages/frontend/.storybook/main.ts @@ -1,6 +1,6 @@ import { resolve } from 'node:path'; import type { StorybookConfig } from '@storybook/vue3-vite'; -import { mergeConfig } from 'vite'; +import { mergeConfig, normalizePath } from 'vite'; import { viteStaticCopy } from 'vite-plugin-static-copy'; const config = { stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], @@ -27,11 +27,11 @@ const config = { viteStaticCopy({ targets: [ { - src: resolve(__dirname, '../node_modules/@tabler/icons-webfont/*.css'), + src: normalizePath(resolve(__dirname, '../node_modules/@tabler/icons-webfont/*.css')), dest: 'node_modules/@tabler/icons-webfont', }, { - src: resolve(__dirname, '../node_modules/@tabler/icons-webfont/fonts/*.{eot,ttf,woff,woff2}'), + src: normalizePath(resolve(__dirname, '../node_modules/@tabler/icons-webfont/fonts/*.{eot,ttf,woff,woff2}')), dest: 'node_modules/@tabler/icons-webfont/fonts', }, ],