This repository was archived by the owner on Jan 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
60 lines (52 loc) · 1.3 KB
/
nuxt.config.ts
File metadata and controls
60 lines (52 loc) · 1.3 KB
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
50
51
52
53
54
55
56
57
58
59
60
import { quasar } from '@quasar/vite-plugin'
import { defineNuxtConfig, NuxtConfig } from 'nuxt/config'
import pugPlugin from 'vite-plugin-pug'
export default defineNuxtConfig(<NuxtConfig>{
telemetry: false,
pages: true,
srcDir: 'src',
debug: process.env.NODE_ENV === 'development',
runtimeConfig: {
public: {
packageVersion: process.env.npm_package_version,
},
},
components: {
global: true,
dirs: [{ path: '~/components' }],
},
css: [
'@quasar/extras/roboto-font/roboto-font.css',
'@quasar/extras/material-icons/material-icons.css',
'@quasar/extras/mdi-v7/mdi-v7.css',
'@quasar/extras/fontawesome-v6/fontawesome-v6.css',
'~/assets/styles/quasar.sass',
],
modules: ['@nuxt-alt/auth', '@pinia/nuxt', '@nuxt-alt/http', '@nuxt-alt/proxy'],
proxy: {
proxies: {
'/api': {
rewrite: (path: string) => path.replace(/^\/api/, ''),
target: 'http://localhost:4000',
changeOrigin: true,
},
},
},
build: {
transpile: ['quasar'],
},
vite: {
define: {
'process.env.DEBUG': !!process.env.DEBUG,
},
plugins: [
pugPlugin({
pretty: true,
} as any),
quasar({
sassVariables: 'assets/styles/quasar-variables.sass',
devTreeshaking: true,
}),
],
},
})