-
Notifications
You must be signed in to change notification settings - Fork 40
/
vite.config.ts
34 lines (33 loc) · 1.16 KB
/
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
30
31
32
33
34
import { resolve } from "node:path";
import process from "node:process";
import { defineConfig } from "vite";
import { NodePackageImporter } from "sass";
export default defineConfig({
base: "/_static/assets/",
build: {
reportCompressedSize: 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: "",
},
css: {
preprocessorOptions: {
scss: {
api: "modern",
importers: [new NodePackageImporter(process.cwd())]
}
}
},
});