-
Notifications
You must be signed in to change notification settings - Fork 47
/
vue.config.js
39 lines (36 loc) · 1.04 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
const path = require('path');
module.exports = {
css: {
requireModuleExtension: true,
loaderOptions: {
css: {
// Note: the following config format is different between Vue CLI v4 and v3
// For Vue CLI v3 users, please refer to css-loader v1 documentations
// https://github.com/webpack-contrib/css-loader/tree/v1.0.1
modules: {
// localIdentName: '[name]-[hash]'
localIdentName: '[path][name]__[local]--[hash:base64:5]'
},
// DO NOT ADD THIS OR YOU BREAK agnosticui-vue modules which use kebob case!
// localsConvention: 'camelCaseOnly'
}
}
},
chainWebpack: (config) => {
const svgRule = config.module.rule('svg');
svgRule.uses.clear();
svgRule
.use('vue-loader')
.loader('vue-loader')
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader')
},
configureWebpack: {
resolve: {
alias: {
"agnosticui": path.resolve(__dirname, '../node_modules/agnosticui-vue/src/stories')
}
}
},
}