-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathvite.config.ts
More file actions
29 lines (28 loc) · 839 Bytes
/
vite.config.ts
File metadata and controls
29 lines (28 loc) · 839 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 {resolve} from "path";
import react from "@vitejs/plugin-react-swc";
import {defineConfig} from "vite";
export default defineConfig({
plugins: [react()],
build: {
assetsInlineLimit: 0,
},
resolve: {
alias: [
{
find: "@khanacademy/wonder-blocks-tokens/styles.css",
replacement: resolve(
__dirname,
"./packages/wonder-blocks-tokens/dist/css/index.css",
),
},
// Allow us to detect changes from local wonder-blocks packages.
{
find: /^@khanacademy\/wonder-blocks(-.*)$/,
replacement: resolve(
__dirname,
"./packages/wonder-blocks$1/src",
),
},
],
},
});