-
Notifications
You must be signed in to change notification settings - Fork 7
/
vite.config.mjs
29 lines (27 loc) · 890 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
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({
server: {
port: 5173, // Temp workaround for vite-plugin-nodecg having the wrong default
},
plugins: [
vue({ template: { transformAssetUrls } }),
quasar({ autoImportComponentCase: 'pascal' }),
checker({ vueTsc: { tsconfigPath: 'tsconfig.browser.json' } }),
NodeCGPlugin(),
],
resolve: {
alias: {
'@nodecg-vue-ts-template': `${__dirname}/src/`,
},
},
});