-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.ts
96 lines (91 loc) · 2.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
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
91
92
93
94
95
96
import type { NuxtConfig } from "@nuxt/types";
const config: NuxtConfig = {
publicRuntimeConfig: { baseURL: process.env.NUXT_BASE_URL },
target: "static",
ssr: false,
head: {
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon_N20_02.png" }],
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "title",
name: "title",
content: "NEXTERS : IT Community for Experts",
},
{
hid: "og-image",
property: "og:image",
name: "og:image",
content: "/og-image.png",
},
{
hid: "og-title",
property: "og:title",
name: "og:title",
content: "NEXTERS : IT Community for Experts",
},
],
},
modules: [
"@nuxt/content",
"@nuxtjs/composition-api/module",
[
"nuxt-lazy-load",
{
// These are the default values
// images: true,
// videos: true,
// audios: true,
// iframes: true,
// native: false,
directiveOnly: true,
// Default image must be in the static folder
defaultImage: "/no-image.svg",
// To remove class set value to false
loadingClass: "isLoading",
loadedClass: "isLoaded",
appendClass: "lazyLoad",
observerConfig: {
// See IntersectionObserver documentation
},
},
],
],
components: [
"~/components",
{ path: "~/components/about", extensions: ["vue"] },
{ path: "~/components/project", extensions: ["vue"] },
{ path: "~/components/contact", extensions: ["vue"] },
{ path: "~/components/recruitment", extensions: ["vue"] },
],
content: {
nestedProperties: ["projects.idx"],
extendParser: {
".custom": (file) => ({
body: file.split("\n").map((line) => line.trim()),
}),
},
},
buildModules: ["@nuxt/typescript-build", "@nuxtjs/svg"],
plugins: ["~/plugins/vue-mq"],
css: [
"~/assets/css/reset.css",
"~/assets/css/webfont.css",
"~/assets/css/_device.scss",
"~/assets/css/setting.scss",
"~/assets/css/color.scss",
"~/assets/css/typography.scss",
],
loading: "~/components/loading-bar.vue",
router: {
middleware: ["store", "trailingSlashRedirect"],
// linkActiveClass: "nuxt-link-active",
trailingSlash: false,
},
pageTransition: {
name: "my-page",
mode: "out-in",
},
};
export default config;