-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
34 lines (33 loc) · 984 Bytes
/
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
const path = require("path");
module.exports = {
chainWebpack: config => {
const apiClient = process.env.VUE_APP_API_CLIENT; // mock or server
config.resolve.alias.set(
"api-client",
path.resolve(__dirname, `src/api/${apiClient}`)
);
},
pwa: {
name: "4. Semester PWA",
short_name: "4SEM PWA",
start_url: "/",
themeColor: "#aeaecf",
appleMobileWebAppCapable: "yes",
appleMobileWebAppStatusBarStyle: "black",
iconPaths: {
favicon32: "img/icons/icon-32x32.png",
favicon16: "img/icons/icon-16x16.png",
appleTouchIcon: "img/icons/icon-152x152.png",
maskIcon: "img/icons/icon.svg",
msTileImage: "img/icons/icon-144x144.png"
},
// configure the workbox plugin
workboxPluginMode: "InjectManifest",
workboxOptions: {
// swSrc is required in InjectManifest mode.
swSrc: "public/service-worker.js",
// ...other Workbox options...
exclude: [/\.config$/]
}
}
};