-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.mjs
31 lines (29 loc) · 944 Bytes
/
vite.config.mjs
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
import { quasar, transformAssetUrls } from '@quasar/vite-plugin';
import vue from '@vitejs/plugin-vue';
import { dirname } from 'path';
import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
import checker from 'vite-plugin-checker';
import NodeCGPlugin from 'vite-plugin-nodecg';
// Getting __dirname with ES Modules.
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue({ template: { transformAssetUrls } }),
quasar({ autoImportComponentCase: 'pascal' }),
checker({ vueTsc: { tsconfigPath: 'tsconfig.browser.json' } }),
NodeCGPlugin({
inputs: {
// 'graphics/*/main.ts': './src/graphics/template.html',
'dashboard/*/main.ts': './src/dashboard/template.html',
},
}),
],
resolve: {
alias: {
'@esa-commercials': `${__dirname}/src/`,
},
},
});