forked from commercelayer/commercelayer-checkout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
30 lines (30 loc) · 814 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
module.exports = {
devServer: {
disableHostCheck: true,
public: process.env.VUE_APP_DEV_SERVER
},
css: {
loaderOptions: {
sass: {
data: `
$PRIMARY_COLOR: ${process.env.VUE_APP_BRAND_COLOR || '#000000'};
$SUCCESS_COLOR: ${process.env.VUE_APP_SUCCESS_COLOR || '#000000'};
$ERROR_COLOR: ${process.env.VUE_APP_ERROR_COLOR || '#000000'};
@import "@/scss/_global.scss";
`
}
}
},
chainWebpack: config => {
;['vue-modules', 'vue', 'normal-modules', 'normal'].forEach(match => {
config.module
.rule('sass')
.oneOf(match)
.use('sass-loader')
.tap(opt =>
Object.assign(opt, { data: `@import '~@/scss/_global.scss'` })
)
})
},
transpileDependencies: ['vuetify']
}