-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.ts
49 lines (47 loc) · 1.59 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* @author Michael Gamlem III
* @copyright This file is subject to the terms and conditions defined in file 'LICENSE', which is part of the source code for this project.
* @format
*/
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000,
strictPort: true,
},
preview: {
port: 3000,
strictPort: true,
},
resolve: {
alias: {
"~bootstrap": path.resolve(__dirname, "node_modules/bootstrap"),
"~ag-grid-community": path.resolve(
__dirname,
"node_modules/ag-grid-community",
),
},
},
build: {
sourcemap: true,
rollupOptions: {
output: {
manualChunks: {
"ag-grid-community-core": ["@ag-grid-community/core"],
"ag-grid-community-react": ["@ag-grid-community/react"],
"ag-grid-community-client-side-row-model": [
"@ag-grid-community/client-side-row-model",
],
},
assetFileNames: "[hash].g.[ext]",
chunkFileNames: "[hash].g.js",
banner: "/*! Copyright © 2023 Michael Gamlem III | github.com/mg3-codes | github.com/mgamlem3 | MIT License applies to code | CC-BY-4.0 applies to D&D content **/",
footer: "/*! This work includes material taken from the System Reference Document 5.1 (“SRD 5.1”) by Wizards of the Coast LLC and available at https://dnd.wizards.com/resources/systems-reference-document. The SRD 5.1 is licensed under the Creative Commons Attribution 4.0 International License available at https://creativecommons.org/licenses/by/4.0/legalcode. */",
},
},
},
});