generated from cp-20/nuxt3-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
62 lines (61 loc) · 1.37 KB
/
nuxt.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
css: ['ress', '~/assets/style/theme.css', '~/assets/style/global.css'],
typescript: {
typeCheck: true,
},
runtimeConfig: {
public: {
traQClientId: process.env.TRAQ_CLIENT_ID ?? '',
},
},
components: [
'~/components/layout-elements',
'~/components/ui',
'~/components/new-questionnaire-form',
{ path: '~/components/new-response-form', pathPrefix: false },
{ path: '~/components/questionnaire-result', pathPrefix: false },
{ path: '~/components/questionnaire-detail', pathPrefix: false },
'~/components',
],
modules: [
'@nuxtjs/google-fonts',
'@pinia/nuxt',
'@nuxt/test-utils/module',
'@nuxtjs/eslint-module',
'@nuxtjs/stylelint-module',
'nuxt-icon',
'nuxt-primevue',
'@pinia-plugin-persistedstate/nuxt',
],
eslint: {
cache: false,
},
stylelint: {
cache: false,
},
googleFonts: {
families: {
Inter: [400, 500, 700],
'M+PLUS+1p': [400, 500, 700],
},
preload: true,
download: false,
},
pinia: {
storesDirs: ['./stores/**'],
},
appConfig: {
nuxtIcon: {},
},
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "~/assets/style/variables.scss";',
},
},
},
},
});