-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvue.config.js
38 lines (36 loc) · 1.21 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
const path = require('path')
module.exports = {
chainWebpack: config => {
const types = ['vue-modules', 'vue', 'normal-modules', 'normal']
types.forEach(type => addStyleResource(config.module.rule('scss').oneOf(type)))
},
baseUrl: process.env.NODE_ENV === 'production'
? '/A11Y-Color-Blindness-Empathy-Test/'
: '/',
pwa: {
name: 'A11Y Color Blindness Empathy Test',
themeColor: '#212121',
msTileColor: '#212121',
appleMobileWebAppCapable: 'yes',
appleMobileWebAppStatusBarStyle: 'black',
iconPaths: {
favicon32: 'img/icons/favicon-32x32.png',
favicon16: 'img/icons/favicon-16x16.png',
appleTouchIcon: 'img/icons/apple-touch-icon.png',
maskIcon: 'img/icons/safari-pinned-tab.svg',
msTileImage: 'img/icons/mstile-icon-150x150.png'
}
}
}
function addStyleResource (rule) {
rule.use('style-resource')
.loader('style-resources-loader')
.options({
patterns: [
path.resolve(__dirname, './src/styles/vendors/_family.scss'),
path.resolve(__dirname, './src/styles/functions/*.scss'),
path.resolve(__dirname, './src/styles/mixins/*.scss'),
path.resolve(__dirname, './src/styles/variables/*.scss'),
],
})
}