-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
43 lines (42 loc) · 845 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
31
32
33
34
35
36
37
38
39
40
41
42
43
const path = require("path");
const webpack = require("webpack");
module.exports = {
pluginOptions: {
"style-resources-loader": {
preProcessor: "scss",
patterns: [
path.resolve(
__dirname,
"node_modules/@wryrych/design-tokens-example/dist/scss/_variables.scss"
),
],
},
},
css: {
loaderOptions: {
less: {
javascriptEnabled: true,
},
},
},
configureWebpack: {
resolve: {
alias: {
Modules: path.resolve(__dirname, "/modules"),
},
},
plugins: [
new webpack.LoaderOptionsPlugin({
test: /\.scss$/,
use: [
"vue-style-loader",
{
loader: "css-loader",
options: { modules: true },
},
"sass-loader",
],
}),
],
},
};