-
Notifications
You must be signed in to change notification settings - Fork 2
/
vite.config.ts
46 lines (44 loc) · 1.38 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
/**
* @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: {
"~ag-grid-community": path.resolve(
__dirname,
"node_modules/ag-grid-community",
),
},
},
css: {
transformer: "lightningcss",
},
build: {
cssMinify: "lightningcss",
sourcemap: true,
rollupOptions: {
output: {
assetFileNames: "[hash].g.[ext]",
chunkFileNames: "[hash].g.js",
banner: `/*! Copyright © 2023-${new Date().getFullYear()} 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. */",
},
},
},
});