-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnuxt.config.js
90 lines (78 loc) · 1.66 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
import { version } from './package.json'
const SITE_TITLE = 'Gibson Ipsum'
const SITE_DESCRIPTION = 'A cyberpunk placeholder text generator.'
function getVersion() {
let string = JSON.stringify(version) || ''
return string.replaceAll('"', '')
}
export default {
mode: 'universal',
target: 'static',
/**
Headers of the page
*/
head: {
htmlAttrs: { class: 'bg-light-gray' },
title: SITE_TITLE,
description: SITE_DESCRIPTION,
meta: [],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{
rel: 'mask-icon',
href: '/safari-pinned-tab.svg',
color: '#2cccff',
},
{
rel: 'stylesheet',
href: 'https://unpkg.com/[email protected]/css/tachyons.min.css',
},
],
},
/**
Global CSS
*/
css: ['~assets/css/main.css'],
env: {
VERSION: getVersion(),
},
build: {
html: {
minify: {
collapseBooleanAttributes: true,
decodeEntities: true,
minifyCSS: false,
minifyJS: true,
processConditionalComments: true,
removeEmptyAttributes: true,
removeRedundantAttributes: true,
trimCustomFragments: true,
useShortDoctype: true,
},
},
postcss: {
plugins: {
// https://preset-env.cssdb.org/features
'postcss-preset-env': {
stage: 0,
},
},
},
},
plugins: ['~/plugins/vue-mq'],
modules: [
['@nuxtjs/google-analytics', { ua: 'UA-58836125-3' }],
// ['@nuxtjs/markdownit', { preset: 'commonmark', typographer: true }],
'@nuxtjs/pwa',
],
manifest: {
name: SITE_TITLE,
short_name: SITE_TITLE,
},
meta: {
theme_color: '#16191b',
ogHost: 'https://gibsonipsum.com',
twitterCard: 'summary',
twitterCreator: '@stormwarning',
},
}