-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
90 lines (89 loc) · 2.57 KB
/
nuxt.config.ts
File metadata and controls
90 lines (89 loc) · 2.57 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import svgLoader from 'vite-svg-loader';
export default defineNuxtConfig({
app: {
head: {
meta: [
{
name: 'viewport',
content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no',
},
],
},
},
runtimeConfig: {
oauth: {
github: {},
},
},
prisma: {
autoSetupPrisma: true,
},
compatibilityDate: '2025-07-01',
devtools: { enabled: true },
srcDir: 'src/',
modules: ['@nuxt/devtools', '@nuxt/eslint', '@nuxtjs/stylelint-module', '@pinia/nuxt', 'nuxt-auth-utils', '@prisma/nuxt', '@nuxt/image', '@vueuse/motion/nuxt'],
eslint: {
checker: {
configType: 'flat',
},
},
stylelint: {
files: ['src/**/*.scss', 'src/**/*.css', 'src/**/*.vue'],
emitError: true,
emitWarning: true,
failOnWarning: false,
failOnError: false,
lintOnStart: false,
cache: false,
},
devServer: {
port: 8080,
},
typescript: {
typeCheck: true,
},
vite: {
css: {
preprocessorMaxWorkers: true,
preprocessorOptions: {
scss: {
api: 'modern-compiler',
additionalData: `@use "~/scss/colors.scss" as *;@use "~/scss/variables.scss" as *;`,
},
},
},
resolve: {
alias: {
'.prisma/client/index-browser': './node_modules/.prisma/client/index-browser.js',
},
},
plugins: [
svgLoader({
defaultImport: 'url',
svgoConfig: {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
removeViewBox: false,
cleanupIds: false,
mergePaths: false,
},
},
},
'convertStyleToAttrs',
'reusePaths',
'removeDimensions',
{
name: 'convertColors',
params: {
currentColor: true,
},
},
],
},
}),
],
},
});