-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvue.config.js
63 lines (60 loc) · 1.74 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
const publicPath = process.env.NODE_ENV === 'production' ? '/solid-vue-panes/' : '/'
module.exports = {
// options...
publicPath: publicPath,
// router en mode history
//https://cli.vuejs.org/core-plugins/pwa.html#example-configuration
//https://stackoverflow.com/questions/55590275/how-to-fix-that-url-query-params-are-not-working-via-the-web-share-target-api-in
//https://github.com/nico-martin/todo-pwa
//https://github.com/nico-martin/todo-pwa/blob/9ae64f77c622785e4be05bb1ce6ccfdbc96f43cc/vue/webpack.config.babel.js
pwa: {
name: 'PoPock',
// themeColor: '#4DBA87',
// msTileColor: '#000000',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
manifestOptions: {
share_target: {
action: publicPath+'bookmarks',
method: "GET",
enctype: "application/x-www-form-urlencoded",
params: {
title: "title",
text: "text",
url: "url"
}
},
},
// configure the workbox plugin
/* workboxPluginMode: 'InjectManifest',
workboxOptions: {
// swSrc is required in InjectManifest mode.
swSrc: 'src/registerServiceWorker.js',
// ...other Workbox options...
}*/
},
chainWebpack: config => {
//http://kazupon.github.io/vue-i18n/guide/sfc.html#webpack
config.module
.rule("i18n")
.resourceQuery(/blockType=i18n/)
.type('javascript/auto')
.use("i18n")
.loader("@kazupon/vue-i18n-loader")
.end();
}
/* pages: {
loadShape: {
entry: 'src/components/LoadShape.vue',
template: 'client/public/index.html',
},
helloWorld: {
entry: 'src/components/HelloWorld.vue',
template: 'client/public/index.html',
},
SolidLogin: {
entry: 'src/components/solid/SolidLogin.vue',
template: 'client/public/index.html',
},
},*/
}