Skip to content
Snippets Groups Projects
Unverified Commit 0f334f90 authored by Acid Chicken (硫酸鶏)'s avatar Acid Chicken (硫酸鶏)
Browse files

build(#10336): normalize path for Windows

parent 88981e9d
No related branches found
No related tags found
No related merge requests found
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',
},
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment