This repository was archived by the owner on May 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnuxt.config.js
More file actions
82 lines (81 loc) · 1.69 KB
/
nuxt.config.js
File metadata and controls
82 lines (81 loc) · 1.69 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
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
const title = 'TDEM';
const description = 'TweetDeck Extension Manager';
const titleFull = title + ' | ' + description;
const downloads = {
chrome: 'https://chrome.google.com/webstore',
firefox: 'https://addons.mozilla.org',
opera: 'https://addons.opera.com',
};
module.exports = {
mode: 'spa',
generate: {
dir: "public"
},
head: {
title: titleFull,
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: description },
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/icon.png' }],
},
loading: {
color: '#ffffff',
failedColor: '#f44336',
height: '3px',
},
css: ['~/assets/style/app.styl'],
plugins: ['@/plugins/vuetify', '@/plugins/aos'],
modules: [
[
'@nuxtjs/markdownit',
{
injected: true,
},
],
[
'@nuxtjs/redirect-module',
[
{ from: '^/chrome', to: downloads.chrome, statusCode: 301 },
{ from: '^/firefox', to: downloads.firefox, statusCode: 301 },
{ from: '^/opera', to: downloads.opera, statusCode: 301 },
],
],
[
'@nuxtjs/robots',
{
UserAgent: '*',
Disallow: '',
},
],
[
'@nuxtjs/pwa',
{
meta: {
favicon: true,
name: titleFull,
description: description,
lang: 'en',
theme_color: '#212121',
},
manifest: {
name: title,
short_name: title,
description: description,
lang: 'en',
start_url: '/',
display: 'standalone',
orientation: 'portrait',
background_color: '#212121',
theme_color: '#212121',
},
icon: {
sizes: [16, 128, 144, 152, 192, 256, 512],
},
},
],
'nuxt-svg-loader',
'vue-scrollto/nuxt',
],
};