-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nuxt.config.js
145 lines (126 loc) · 3.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
import fs from 'fs'
let appLastUpdatedAt = new Date()
try {
appLastUpdatedAt = fs.readFileSync('./.last-updated-at', 'utf8')
} catch (err) {}
export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
loadingIndicator: {
name: 'pulse',
color: '#f5f5f521',
background: '#ffffff',
},
// Loading progress bar component that's shown between routes
loading: {
color: '#ce4611',
failedColor: '#fb9193',
height: '0.125rem',
throttle: 0, // wait for the specified time before displaying the progress bar.
},
generate: { fallback: '404.html' },
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'Ravgeet Dhillon - Full Stack Developer and Technical Content Writer',
htmlAttrs: {
lang: 'en',
},
meta: [
{ charset: 'utf-8' },
{
name: 'viewport',
content:
'width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, shrink-to-fit=no',
},
{ name: 'author', content: 'Ravgeet Dhillon' },
{
name: 'description',
content:
'Ravgeet Dhillon is a full time Full Stack Developer and Technical Content Writer working remotely and based in India.',
},
{ name: 'generator', content: 'Nuxt.js' },
{ name: 'robots', content: 'all' },
{
hid: 'description',
name: 'description',
content:
'Ravgeet Dhillon is a full time Full Stack Developer and Technical Content Writer working remotely and based in India.',
},
{ hid: 'og:title', name: 'og:title', content: 'Ravgeet Dhillon' },
{ hid: 'og:site_name', name: 'og:site_name', content: 'Ravgeet Dhillon' },
{
hid: 'apple-mobile-web-app-title',
name: 'apple-mobile-web-app-title',
content: 'Ravgeet Dhillon',
},
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: ['@/assets/scss/index.scss'],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: ['@/plugins/index.js'],
// Auto import components: https://go.nuxtjs.dev/config-components
components: [
{
path: '@/components',
pathPrefix: false,
},
],
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: ['@nuxtjs/eslint-module', '@nuxtjs/pwa', '@/modules/sitemapRouteGenerator'],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
'bootstrap-vue/nuxt',
'@nuxtjs/axios',
'@nuxt/content',
'@nuxtjs/robots',
'@nuxtjs/sitemap', // always declare sitemap at the end of the array
],
module: {
rules: [
{
test: /\.s[ac]ss$/i,
use: ['style-loader', 'css-loader', 'sass-loader'],
},
],
},
// use these settings to use custom css
bootstrapVue: {
bootstrapCSS: false,
icons: true,
},
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {
// Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
baseURL: '/',
},
content: {},
robots: {
UserAgent: '*',
Sitemap: 'https://www.ravgeet.in/sitemap.xml',
},
sitemap: {
hostname: 'https://www.ravgeet.in',
gzip: true,
exclude: [],
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
splitChunks: { layouts: true },
loaders: {
vue: {
prettify: false,
},
},
},
publicRuntimeConfig: {
appLastUpdatedAt,
site: {
author: 'Ravgeet Dhillon',
repo: 'https://github.com/ravgeetdhillon/ravgeet-web',
newsletter: 'https://www.ravsam.in/newsletter/',
},
dribbbleApiAccessToken: process.env.DRIBBBLE_ACCESS_TOKEN,
},
}