generated from Demetory/dim-nuxt3-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
56 lines (47 loc) · 1.52 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
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "url";
import VueI18nVitePlugin from "@intlify/unplugin-vue-i18n/vite";
export default defineNuxtConfig({
srcDir: "src",
ssr: true,
app: {
rootId: "app",
pageTransition: { name: "page", mode: "out-in" },
head: {
link: [
{ rel: "author", href: "/humans.txt" },
{ rel: "manifest", href: "/site.webmanifest" },
{ rel: "stylesheet", href: "/css/reset.css" },
{ rel: "stylesheet", href: "/css/noscript.css" },
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "", as: "style" },
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap",
as: "style",
},
],
},
},
css: ["@/assets/scss/_core/_index.scss", "@/assets/scss/theme/style.theme.scss"],
modules: ["@nuxt/content", "@vueuse/nuxt", "@pinia/nuxt"],
vite: {
logLevel: "info",
plugins: [
VueI18nVitePlugin({
include: [resolve(dirname(fileURLToPath(import.meta.url)), "./locales/*.json")],
}),
],
css: {
preprocessorOptions: {
scss: {
additionalData: `
@use "./src/assets/scss/theme/var.colors.scss" as colors;
@use "./src/assets/scss/theme/var.grid.scss" as grid;
@import "./src/assets/scss/theme/var.mixins.scss";
`,
},
},
},
},
});