-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvue.config.js
80 lines (78 loc) · 2.31 KB
/
vue.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
const path = require('path');
// eslint-disable-next-line import/no-extraneous-dependencies
const webpack = require('webpack');
module.exports = {
outputDir: path.resolve(__dirname, 'docs'),
lintOnSave: false,
transpileDependencies: [
'vuetify',
],
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
CANVAS_RENDERER: JSON.stringify(true),
WEBGL_RENDERER: JSON.stringify(true),
}),
],
},
chainWebpack: (config) => {
// HTML Title used for OpenGraph linters (social media links)
config.plugin('html').tap((args) => {
// eslint-disable-next-line no-param-reassign
args[0].title = 'Happy Birthday Enna!';
// eslint-disable-next-line no-param-reassign
args[0].meta = {
description: 'Aloupeeps celebrate Enna Alouette\'s Birthday!',
'og:title': 'Happy Birthday Enna!',
'og:type': 'website',
'og:description': 'Aloupeeps celebrate Enna Alouette\'s Birthday!',
'og:image': 'https://birthday.ennaalouette.com/ogimage.png',
'twitter:card': 'summary_large_image',
'twitter:title': 'Happy Birthday Enna!',
'twitter:description': 'Aloupeeps celebrate Enna Alouette\'s Birthday!',
'twitter:image': 'https://birthday.ennaalouette.com/ogimage.png',
};
return args;
});
// Disable hot reload
config.module
.rule('vue')
.use('vue-loader')
.tap((options) => {
// eslint-disable-next-line no-param-reassign
options.hotReload = false;
return options;
});
// Disable base64 image url-loader
config.module
.rule('images')
.use('url-loader')
.tap((options) => {
// eslint-disable-next-line no-param-reassign
options.limit = 1;
return options;
});
},
pwa: {
name: 'Enna Birthday',
themeColor: '#102471',
workboxOptions: {
skipWaiting: true,
exclude: [
'CNAME',
/(.*).css.map/g,
/(.*).js.map/g,
],
},
assetsVersion: '2022_02_19_18_09',
manifestOptions: {
name: 'Enna Birthday',
short_name: 'Enna Birthday',
description: 'Aloupeeps celebrate Enna Alouette\'s Birthday in 2022',
display: 'standalone',
orientation: 'landscape',
background_color: '#ffffff',
start_url: './',
},
},
};