-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
53 lines (47 loc) · 1.43 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
import vitePluginRequire from "vite-plugin-require";
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
(_options, nuxt) => {
nuxt.hooks.hook("vite:extendConfig", (config) => {
// @ts-expect-error
config.plugins.push(vuetify({ autoImport: true }));
});
},
"@pinia/nuxt",
"@nuxtjs/i18n",
"@vueuse/nuxt",
],
css: ["flag-icons/css/flag-icons.min.css"],
pinia: {
autoImports: [
"defineStore", // import { defineStore } from 'pinia'
["defineStore", "definePiniaStore"], // import { defineStore as definePiniaStore } from 'pinia'
],
},
vite: {
vue: {
template: {
transformAssetUrls,
},
},
plugins: [vitePluginRequire({})],
},
build: {
transpile: ["vuetify", "vue-final-modal"],
},
components: [
{ path: "~/features/header/components", prefix: "Header" },
{ path: "~/features/header/search/components", prefix: "HeaderSearch" },
{ path: "~/features/footer/components", prefix: "Footer" },
{ path: "~/features/map/components", prefix: "Map" },
{ path: "~/features/weather/components", prefix: "Weather" },
{
path: "~/features/weather/schedule/components",
prefix: "WeatherSchedule",
},
{ path: "~/features/base/components", prefix: "Base" },
],
compatibilityDate: "2024-08-02",
});