-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.js
116 lines (114 loc) · 2.78 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
module.exports = {
target: "static",
srcDir: "nuxt_src/",
/*
** Customize the progress-bar color
*/
loading: { color: "#fff" },
head: {
meta: [{ "http-equiv": "x-dns-prefetch-control", content: "on" }],
link: [
{ rel: "dns-prefetch", href: "//maps.googleapis.com" },
{ rel: "dns-prefetch", href: "//maps.gstatic.com" },
{ rel: "dns-prefetch", href: "//fonts.googleapis.com" },
{ rel: "dns-prefetch", href: "//connect.facebook.net" },
{ rel: "dns-prefetch", href: "//platform.twitter.com" },
{ rel: "dns-prefetch", href: "//b.st-hatena.com" },
{ rel: "dns-prefetch", href: "//blog.scalamatsuri.org" },
],
},
/** Global CSS */
css: ["~/assets/vendor/sanitize.css/sanitize.css", "~/assets/scss/style.scss", "@fortawesome/fontawesome-svg-core/styles.css"],
plugins: [
{ src: "~/plugins/vue2-google-maps", ssr: false },
{ src: "~/plugins/lazyload", ssr: false },
{ src: "~/plugins/firebase", ssr: false },
{ src: "~/plugins/scalaMatsuriCommon", ssr: false },
{ src: "~/plugins/toast", ssr: false },
{ src: "~/plugins/constants" },
{ src: "~/plugins/fontawesome.js" },
],
/*
** Nuxt.js dev-modules
*/
buildModules: ["@nuxt/typescript-build", "@aceforth/nuxt-optimized-images"],
modules: [
"@nuxtjs/axios",
"@nuxtjs/sentry",
[
"@nuxtjs/google-analytics",
{
id: "UA-51559416-6",
},
],
[
"@nuxtjs/i18n",
{
baseUrl: "http://scalamatsuri.org",
locales: [
{
code: "ja",
iso: "ja_JP",
name: "日本語",
},
{
code: "en",
iso: "en_US",
name: "English",
},
],
strategy: "prefix",
detectBrowserLanguage: {
useCookie: true,
cookieKey: "scalamatsuri_i18n_redirected",
alwaysRedirect: false,
},
rootRedirect: "en",
vueI18nLoader: true,
vueI18n: {
fallbackLocale: "en",
},
rules: [
{
resourceQuery: /blockType=i18n/,
type: "javascript/auto",
options: { asStream: true },
loader: "@intlify/vue-i18n-loader",
},
],
},
],
[
"nuxt-mq",
{
defaultBreakpoint: "default",
breakpoints: {
sm: 600,
lg: Infinity,
},
},
],
],
axios: {},
sentry: {
dsn: "https://[email protected]/2211949",
config: {},
},
/*
** Build configuration
*/
build: {},
optimizedImages: {
optimizeImages: true,
},
generate: {
fallback: "404.html",
},
render: {
resourceHints: false,
compressor: {
threshold: 0,
level: 9,
},
},
}