-
Notifications
You must be signed in to change notification settings - Fork 8
/
nuxt.config.js
115 lines (92 loc) · 3.03 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
const path = require('path')
const fs = require('graceful-fs')
export default {
telemetry: false,
// ssr: false,
// Global page headers (https://go.nuxtjs.dev/config-head)
head: {
titleTemplate: '%s - Stella IT Docs',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' },
{ hid: 'description', name: 'description', content: 'Stella IT의 공식 문서입니다.' }
],
link: [
{ rel: 'stylesheet', href: 'https://pretendard.appie.dev/web/static/pretendard.css' },
{ rel: 'stylesheet', href: 'https://fontawesome.appie.dev/css/all.min.css' },
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
],
script: [
{ src: "https://polyfill.appie.dev/polyfill.min.js?features=default%2CJSON%2CNumber.parseInt%2CNumber.parseFloat%2CNumber.isNaN%2CNumber.isInteger%2Ces2019%2Ces2018%2Ces2017%2Ces2016%2Ces2015%2Ces7%2Ces6%2Ces5%2CArray.isArray%2CArray.prototype.forEach%2CArray.prototype.indexOf%2CArray.prototype.sort%2CArray.prototype.map" }
]
},
// Global CSS (https://go.nuxtjs.dev/config-css)
css: [
"~/assets/css/main.css"
],
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins)
plugins: [
],
// Auto import components (https://go.nuxtjs.dev/config-components)
components: true,
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules)
buildModules: [
// https://go.nuxtjs.dev/tailwindcss
'@nuxtjs/tailwindcss',
],
tailwindcss: {
},
// Modules (https://go.nuxtjs.dev/config-modules)
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
// https://go.nuxtjs.dev/pwa
'@nuxtjs/pwa',
'@nuxtjs/dayjs',
'@nuxt/content'
],
generate: {
fallback: '404.html',
routes: ['/']
},
hooks: {
'content:file:beforeInsert': (document) => {
const regexp = new RegExp(`^/(ko)`, 'gi')
const { dir, slug, category } = document
const _dir = dir.replace(regexp, '')
const _slug = slug.replace(/^index/, '')
const _category = category && typeof category === 'string' ? category : ''
document.to = `${_dir}/${_slug}`
document.category = _category
}
},
dayjs: {
locales: ['en', 'ko'],
defaultLocale: 'ko',
defaultTimeZone: 'Asia/Seoul',
plugins: [
'utc', // import 'dayjs/plugin/utc'
'timezone' // import 'dayjs/plugin/timezone'
] // Your Day.js plugin
},
// Axios module configuration (https://go.nuxtjs.dev/config-axios)
axios: {
},
// loading: '~/components/loading.vue',
// Build Configuration (https://go.nuxtjs.dev/config-build)
build: {
},
// PWA module configuration: https://go.nuxtjs.dev/pwa
pwa: {
icon: {
source: 'icon.png',
},
manifest: {
name: 'Stella IT Documents',
short_name: "Docs",
description: 'Stella IT의 공식 문서를 지금 확인해보세요.',
lang: 'ko',
useWebmanifestExtension: false
}
}
}