forked from monarch-initiative/monarch-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
42 lines (39 loc) · 1020 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
module.exports = {
outputDir: 'docs',
baseUrl: '/monarch-ui/',
lintOnSave: false,
chainWebpack: (config) => {
config.module
.rule('vue')
.use('vue-loader')
.loader('vue-loader')
.tap((options) => {
/* eslint no-param-reassign: 0 */
options.transformAssetUrls = {
'img': 'src',
'image': 'xlink:href',
'b-img': 'src',
'b-img-lazy': ['src', 'blank-src'],
'b-card': 'img-src',
'b-card-img': 'img-src',
'b-carousel-slide': 'img-src',
'b-embed': 'src'
};
return options;
});
}
/*
const path = require('path');
// Based on:
// https://github.com/vuejs/vue-cli/issues/1647#issuecomment-399093605
//
chainWebpack: config => {
config.plugin('define').tap(definitions => {
definitions[0] = Object.assign(definitions[0], {
'monarchNGPrelude': path.join(__dirname, 'src/style/variables.scss')
});
return definitions;
});
}
*/
};