forked from Enalean/tuleap-documentation-en
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
24 lines (23 loc) · 902 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
import { defineConfig } from "vite";
const { resolve } = require("path");
export default defineConfig({
base: "/_static/assets/",
build: {
brotliSize: false,
rollupOptions: {
input: {
scroll: resolve(__dirname, "languages/en/_themes/tuleap_org/js/scroll.js"),
nav: resolve(__dirname, "languages/en/_themes/tuleap_org/js/nav.js"),
theme: resolve(__dirname, "languages/en/_themes/tuleap_org/js/theme.js"),
style: resolve(__dirname, "languages/en/_themes/tuleap_org/style/main.scss"),
},
output: {
entryFileNames: "[name].js",
chunkFileNames: "[name].js",
assetFileNames: "[name].[ext]"
}
},
outDir: resolve(__dirname, "languages/en/_themes/tuleap_org/static/assets/"),
assetsDir: "",
},
});