-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.js
executable file
·135 lines (134 loc) · 3.24 KB
/
nuxt.config.js
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
const routerBase =
process.env.DEPLOY_ENV === "GH_PAGES"
? {
router: {
base: "/wish-list/",
},
}
: {};
module.exports = {
...routerBase,
// Header meta
server: {
port: 8000, // default: 3000
// host: '0.0.0.0' // default: localhost
},
head: {
title: "Studio Alloy",
// script: [
// { src: "/js/DrawSVGPlugin.min.js" },
// { src: "/js/MorphSVGPlugin.min.js" },
// ],
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{
hid: "description",
name: "description",
content: "Wij zijn makers. De technisch handige jongens. De doeners. En wij maken impact met pixels.",
},
{ property: "og:type", content: "website" },
{ property: "og:title", content: "Studio Alloy | Webdesign & development" },
{
property: "og:description",
content: "Wij zijn makers. De technisch handige jongens. De doeners. En wij maken impact met pixels.",
},
{ property: "og:url", content: "https://studioalloy.nl" },
{
property: "og:image",
content: "https://studioalloy.nl/share.jpg",
},
],
link: [
{
rel: "icon",
type: "image/x-icon",
href: "",
},
],
},
// END Header meta
// ⚙️ Nuxt pre generate the following pages as static HTML
generate: {
dir: "docs",
routes: [
'/projecten',
'/over',
'/workflow',
'/contact',
'/privacy',
'/project/websites',
'/project/intranet',
'/project/datavisualisatie',
],
},
// END ⚙️
// Nuxt 📦 modules
modules: [
// "@nuxtjs/axios",
"@nuxtjs/apollo",
// '@nuxtjs/redirect-module',
],
render: {
static: {
maxAge: 1000 * 60 * 60 * 24 * 7
}
},
// redirect: [
// { from: '^/team', to: '/over' }, // Many urls to one
// { from: '^/team/(.*)$', to: '/over' }, // Many urls to one
// { from: '^/werkruimte', to: '/over' }, // One to one mapping
// { from: '^/project/(.*)$', to: '/projecten' }, // Many urls to one
// ],
apollo: {
clientConfigs: {
default: '@/apollo/client-configs/default.js'
}
},
plugins: [
// { src: '~/plugins/ScrollMagic.js', ssr: false },
{ src: '~/plugins/ogmeta.js', ssr: true },
// { src: '~plugins/ga.js', mode: 'client' },
],
// END 📦
manifest: {
name: "studioalloy",
short_name: "studioalloy",
lang: "en",
icons: [
{
src: "android-chrome-96x96.png",
sizes: "96x96",
type: "image/png",
},
],
theme_color: "#e64",
background_color: "#e64lll",
display: "standalone",
},
css: ["@/assets/css/main.scss"],
loading: { color: "#F53" },
// buildModules: ['nuxt-gsap-module'],
// gsap: {
// extraPlugins: {
// // scrollTrigger: true
// },
// clubPlugins: {
// drawSVG: true,
// morphSVG: true,
// }
// },
build: {
transpile: ['gsap'],
extend(config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: "pre",
test: /\.(js|vue)$/,
loader: "eslint-loader",
exclude: /(node_modules)/,
});
}
},
},
};