-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
27 lines (26 loc) · 941 Bytes
/
vite.config.js
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
import { resolve } from "path";
import { defineConfig } from "vite";
export default defineConfig({
build: {
assetsInlineLimit: 0,
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
exampleLayout: resolve(__dirname, "example/layout.html"),
exampleBodyCopy: resolve(__dirname, "example/body-copy.html"),
exampleColor: resolve(__dirname, "example/color.html"),
exampleElements: resolve(__dirname, "example/elements-showcase.html"),
mainSheet: resolve(__dirname, "css/index.scss"),
fontsSheet: resolve(__dirname, "css/fonts.scss"),
schemeDark: resolve(__dirname, "css/dark.scheme.scss"),
schemeLight: resolve(__dirname, "css/light.scheme.scss"),
},
output: {
assetFileNames: (assetInfo) =>
(assetInfo.name.endsWith("css") ? "css" : "assets") +
"/" +
assetInfo.name,
},
},
},
});