-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
vite.config.js
46 lines (44 loc) · 1.38 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// import Icons from "unplugin-icons/vite";
import { defineConfig } from "vite";
import { ViteAliases } from "vite-aliases";
export default defineConfig(({ command, mode, ssrBuild }) => ({
base: "/Captions-AI/",
// Getting rid of hashes in generated filenames
filenameHashing: false,
build: {
// cssMinify: false, // disable CSS mininfy only
// minify: false, // disable CSS/JS mininfy only
// change output location
rollupOptions: {
output: {
manualChunks: undefined,
assetFileNames: "assets/[name].[ext]", // Output assets (e.g., images, SVGs) to the assets folder
entryFileNames: "assets/[name].js", // Output entry files (e.g., JavaScript) to the root directory
chunkFileNames: "assets/[name].[ext]", // Output dynamic imports (chunks) to the assets folder
},
},
},
server: {
// open the server with google chrome browser
open: (process.env.BROWSER = "E:\\Apps\\scoop\\apps\\googlechrome-dev\\current\\chrome.exe"),
},
/* resolve: {
alias: {
// "~gerillass": path.resolve(__dirname, "node_modules/gerillass/scss/gerillass.scss"),
// "@" -> "/User/project-root/src/views"
// '@': path.join(__dirname, 'src/views'),
},
}, */
plugins: [
ViteAliases({
dir: "src",
prefix: "@",
deep: true,
depth: 1,
/**
* Disables any terminal output
*/
silent: false,
}),
],
}));