-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
30 lines (29 loc) · 1 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
/**
* vue.config.js
* Created by Matthew Ary on 2019-07-24.
* Email: [email protected]
*/
module.exports = {
transpileDependencies: ['vuetify'],
chainWebpack: config => {
// https://github.com/vuejs/vue-cli/issues/4116#issuecomment-510288266
// https://vuetifyjs.com/en/customization/sass-variables#single-file-components
const e = ["vue-modules","vue","normal-modules","normal"];
e.forEach((match) => {
config.module.rule('sass').oneOf(match).use('sass-loader')
// .tap(opt => Object.assign(opt, { data: `@import '~@/sass/main.sass'` })) // <-- THIS does not work but it's what written in the docs.
.tap(opt => Object.assign(opt, { data: `@import '~@/sass/main.scss'` })) // <-- This does not work either.
});
},
css: {
loaderOptions: {
sass: {
data: '@import "~@/sass/main.scss"',
implementation: require('sass'),
fiber: require('fibers')
}
},
sourceMap: true
},
};