generated from MetaMask/metamask-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvite.config.ts
More file actions
29 lines (28 loc) · 640 Bytes
/
vite.config.ts
File metadata and controls
29 lines (28 loc) · 640 Bytes
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 react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import tailwindcss from '@tailwindcss/vite';
import path from 'path';
export default defineConfig({
plugins: [
react(),
tailwindcss()
],
resolve: {
alias: {
'@metamask/design-tokens': path.resolve(
__dirname,
'../../packages/design-tokens',
),
'@metamask/design-system-react': path.resolve(
__dirname,
'../../packages/design-system-react/src',
),
},
},
assetsInclude: ['**/*.md', '**/*.mdx'],
build: {
rollupOptions: {
external: [/\.md$/, /\.mdx$/],
},
},
});