-
Notifications
You must be signed in to change notification settings - Fork 16
/
vue.config.js
29 lines (27 loc) · 776 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
module.exports = {
chainWebpack: config => {
config.entryPoints.clear()
config.entry('fishtank-vue').add('./dev/main.ts')
config.module
.rule('svg')
.uses.clear()
config.module
.rule('svg')
.use('vue-svg-icon')
.loader('vue-svg-icon-loader')
},
configureWebpack: config => {
config.module.rules.push({
resourceQuery: /blockType=introduction/,
loader: require.resolve('./config/introduction-loader.js')
}),
config.module.rules.push({
resourceQuery: /blockType=description/,
loader: require.resolve('./config/description-loader.js')
}),
config.module.rules.push({
resourceQuery: /blockType=token/,
loader: require.resolve('./config/token-loader.js')
})
},
}