-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.config.js
56 lines (55 loc) · 1.77 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
const path = require('path');
const { defineConfig } = require('@vue/cli-service');
module.exports = defineConfig({
outputDir: path.resolve(__dirname, 'docs'),
transpileDependencies: [
'vuetify',
],
lintOnSave: false,
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 = 'Ethyria Anniversary';
// eslint-disable-next-line no-param-reassign
args[0].meta = {
description: 'Happy 1-year Anniversary Ethyria!',
'og:title': 'Ethyria Anniversary',
'og:type': 'website',
'og:description': 'Happy 1-year Anniversary Ethyria!',
// 'og:image': 'https://birthday.ennaalouette.com/ogimage.png',
'twitter:card': 'summary_large_image',
'twitter:title': 'Ethyria Anniversary',
'twitter:description': 'Happy 1-year Anniversary Ethyria!',
// 'twitter:image': 'https://birthday.ennaalouette.com/ogimage.png',
};
return args;
});
// Disable base64 image url-loader
config.module.rule('images').set('type', 'asset/resource');
// Add entry point for the VN game
config.entry('game').add('./game/index.js');
},
pwa: {
name: 'Ethyria Anniversary',
themeColor: '#102471',
workboxOptions: {
skipWaiting: true,
exclude: [
'CNAME',
/(.*).css.map/g,
/(.*).js.map/g,
],
},
assetsVersion: '2022_02_27_00_00',
manifestOptions: {
name: 'Ethyria Anniversary',
short_name: 'Ethyria Anniv',
description: 'Happy 1-year Anniversary Ethyria!',
display: 'standalone',
orientation: 'landscape',
background_color: '#ffffff',
start_url: './',
},
},
});