-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
29 lines (28 loc) · 977 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import svgr from 'vite-plugin-svgr';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), svgr()],
resolve: {
alias: [
{ find: '@pages', replacement: '/src/pages' },
{ find: '@components', replacement: '/src/components' },
{ find: '@assets', replacement: '/src/assets' },
{ find: '@hooks', replacement: '/src/hooks' },
{ find: '@utils', replacement: '/src/utils' },
{ find: '@constants', replacement: '/src/constants' },
{ find: '@style', replacement: '/src/style' },
{ find: '@store', replacement: '/src/store' },
{ find: '@apis', replacement: '/src/apis' },
{ find: '@', replacement: '/src' },
{ find: '@context', replacement: '/src/context' },
],
},
build: {
rollupOptions: {
external: ['./sb-preview/runtime.js'],
},
},
assetsInclude: ['/sb-preview/runtime.js'],
});