-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvue.config.js
86 lines (84 loc) · 1.99 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
81
82
83
84
85
86
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
const path = require("path");
module.exports = {
pluginOptions: {
webpackBundleAnalyzer: {
openAnalyzer: false,
analyzerMode: process.env.BUNDLE_ANALYZE || "disabled"
}
},
productionSourceMap: false,
runtimeCompiler: true,
configureWebpack:{
optimization: {
splitChunks: {
minSize: 250000,
maxSize: 1000000,
}
},
plugins: [
new MonacoWebpackPlugin({
languages: ["yaml"],//configure your languages here
features: ["coreCommands", "find"],
}),
],
},
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].title = 'Tempo - Find your own rythm'
return args
})
config.resolve.alias.set(
"vscode",
path.resolve(
"./node_modules/monaco-languageclient/lib/vscode-compatibility"
)
);
},
pwa: {
name: 'Tempo',
themeColor: '#422D62',
msTileColor: '#422D62',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
workboxPluginMode: 'InjectManifest',
workboxOptions: {
importWorkboxFrom: 'local',
// swSrc is required in InjectManifest mode.
swSrc: 'src/service-worker.js',
swDest: 'service-worker.js',
exclude: []
},
manifestOptions: {
display: "standalone",
start_url: '.',
description: 'Find your own rhythm',
scope: "/",
categories: ["notes", "note",, "diary", "log", "health", "mood tracker"],
icons: [
{
'src': 'icon.png',
'sizes': '192x192',
'type': 'image/png'
},
{
'src': 'icon.png',
'sizes': '512x512',
'type': 'image/png'
},
]
},
iconPaths: {
favicon32: 'icon.png',
favicon16: 'icon.png',
appleTouchIcon: 'icon.png',
maskIcon: 'icon.png',
msTileImage: 'icon.png'
}
},
"transpileDependencies": [
"vuetify"
]
}