-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
48 lines (43 loc) · 1.54 KB
/
webpack.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
/**
* ██╗ ██╗ ██████╗ ██████╗ ███╗ ██╗██╗████████╗
* ╚██╗ ██╔╝██╔═══██╗██╔═══██╗████╗ ██║██║╚══██╔══╝
* ╚████╔╝ ██║ ██║██║ ██║██╔██╗ ██║██║ ██║
* ╚██╔╝ ██║ ██║██║ ██║██║╚██╗██║██║ ██║
* ██║ ╚██████╔╝╚██████╔╝██║ ╚████║██║ ██║
* ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝
*
* https://yoonit.dev - [email protected]
*
* NativeScript Yoonit Components
* NativeScript VueJS Atomic Design System framework
*
* Luigui Delyer @ 2021
*/
// https://docs.nativescript.org/webpack
module.exports = config => {
config.module
.rule('pug')
.test(/\.pug$/)
.use('pug-plain-loader')
.loader('pug-plain-loader')
.end()
config.module
.rule('scss')
.test(/\.(sass|scss)$/)
.use('sass-loader')
.options({
sassOptions: {
indentedSyntax: true
}
})
config.module
.rule('css')
.use('vue-css-loader')
.after('css2json-loader')
.loader('vue-loader/lib/loaders/stylePostLoader.js')
config.module
.rule('scss')
.use('vue-css-loader')
.after('css2json-loader')
.loader('vue-loader/lib/loaders/stylePostLoader.js')
}