-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.config.js
58 lines (53 loc) · 1.03 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
module.exports = {
chainWebpack: (config) => {
config
.plugin('html')
.tap(args => {
args[0].title = 'makemake';
args[0].meta = {
url: 'https://schascha.github.io/makemake/',
description: 'Just a simple working hours and salary calculator'
};
return args;
});
// SVG
const svgRule = config.module.rule('svg');
svgRule.uses.clear();
svgRule.delete('type');
svgRule.delete('generator');
svgRule
.use('babel-loader')
.loader('babel-loader')
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader');
},
css: {
loaderOptions: {
scss: {
additionalData: `
@import '@/scss/_variables.scss';
@import '@/scss/_mixins.scss';
`
}
}
},
pluginOptions: {
i18n: {
locales: ['en', 'de'],
fallbackLocale: 'en',
localeDir: 'locales',
enableInSFC: true
}
},
publicPath: process.env.NODE_ENV === 'production'
? '/makemake/'
: '/',
pwa: {
name: 'makemake',
themeColor: '#FFE474',
manifestOptions: {
background_color: '#FFE474'
}
}
};