forked from oimchat/oim-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
43 lines (38 loc) · 1.07 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
39
40
41
42
43
const path = require('path');
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = {
chainWebpack: (config) => {
// @scss是你取的静态资源路径别名
config.resolve.alias.set('@', resolve('src'));
config.resolve.alias.set('@scss', resolve('src/styles'));
// 若需要配置多个别名,后续紧跟着设置set即可
/* config.resolve.alias.set('@scss', resolve('src/static/scss')).set('@',resolve('src'))
*/
},
configureWebpack: {
module: {
rules: [{
test: /\.less$/,
use: [{
loader: "less-loader", options: {
lessOptions: {
javascriptEnabled: true
}
},
}],
}],
},
// Configuration applied to all builds
},
pluginOptions: {
quasar: {
importStrategy: 'kebab',
rtlSupport: true
}
},
transpileDependencies: [
'quasar'
]
};