forked from Happysword/Spotify-El8alaba-FrontEnd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
39 lines (36 loc) · 915 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
35
36
37
38
39
const path = require('path');
module.exports = {
transpileDependencies: ['vuetify'],
pwa: {
icons: [
{
src: 'img/icons/El-8alaba.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'img/icons/El-8alaba.png',
sizes: '512x512',
type: 'image/png',
},
],
iconPaths: {
favicon32: 'img/icons/El-8alaba.png',
favicon16: 'img/icons/El-8alaba.png',
appleTouchIcon: 'img/icons/El-8alaba.png',
maskIcon: 'icons/safari-pinned-tab.svg',
msTileImage: 'img/icons/El-8alaba.png',
},
workboxPluginMode: 'InjectManifest',
workboxOptions: {
swSrc: 'public/firebase-messaging-sw.js',
},
},
chainWebpack(config) {
const apiClient = process.env.VUE_APP_API_CLIENT;
config.resolve.alias.set(
'api-client',
path.resolve(__dirname, `src/api/${apiClient}`),
);
},
};