This repository was archived by the owner on Mar 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.js
More file actions
55 lines (54 loc) · 1.63 KB
/
Copy pathnuxt.config.js
File metadata and controls
55 lines (54 loc) · 1.63 KB
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
const _ = {
capitalize: (str) => {
return str[0].toUpperCase() + str.slice(1)
}
}
export default {
head: {
title: 'aexhell.',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'aexhell. front-end developer. reach for the moon.' },
{ name: 'og:site_name', content: 'aexhell.' },
{ name: 'og:title', content: 'lunar.' },
{ property: 'og:description', content: 'aexhell. front-end developer. reach for the moon.' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap' }
]
},
globalName: 'lunar',
globals: {
id: globalName => `__${globalName}`,
nuxt: globalName => `$${globalName}`,
context: globalName => `__${globalName.toUpperCase()}__`,
pluginPrefix: globalName => globalName,
readyCallback: globalName => `on${_.capitalize(globalName)}Ready`,
loadedCallback: globalName => `_on${_.capitalize(globalName)}Loaded`
},
css: [
'~/assets/global.css'
],
plugins: [],
components: true,
buildModules: [
'@nuxt/typescript-build',
'@nuxtjs/tailwindcss'
],
modules: [
'@nuxtjs/axios',
'@nuxtjs/pwa'
],
axios: {
// Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
baseURL: '/'
},
pwa: {
manifest: {
lang: 'en'
}
},
build: {}
}