-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
63 lines (62 loc) · 1.27 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
63
import type { NuxtConfig } from "nuxt/schema";
import vuetify, { transformAssetUrls } from "vite-plugin-vuetify";
const config: NuxtConfig = {
ssr: true,
devtools: { enabled: false },
srcDir: "src/",
modules: [
"@pinia/nuxt",
"@nuxtjs/tailwindcss",
"@vee-validate/nuxt",
"@nuxt/eslint",
"@nuxtjs/color-mode",
"@nuxt/image",
"@nuxtjs/google-fonts",
"@nuxtjs/seo",
"nuxt-typed-router",
(_options, nuxt) => {
nuxt.hooks.hook("vite:extendConfig", (config) => {
// @ts-expect-error
config.plugins.push(vuetify({ autoImport: true }));
});
},
],
css: [],
plugins: [],
build: {
transpile: ["vuetify"],
},
vite: {
vue: {
template: {
transformAssetUrls,
},
},
},
// @ts-expect-error
eslint: {
config: {
stylistic: true,
},
},
colorMode: {
preference: "system",
fallback: "dark",
},
linkChecker: {
showLiveInspections: true,
},
// SEO config
// alterar com infos reais quando for fazer deploy
site: {
url: "https://example.com",
name: "Shop.co",
description: "Welcome to Shop.co website!",
},
googleFonts: {
families: {
Poppins: [100, 200, 300, 400, 500, 600, 700, 800],
},
},
};
export default config;