onspot-frontend/vue.config.js

30 lines
928 B
JavaScript
Raw Normal View History

2020-11-26 01:30:15 +01:00
module.exports = {
publicPath: "/",
chainWebpack: config => {
config.module
.rule('vue')
.use('vue-loader')
.loader('vue-loader')
.tap(options => {
options.transformAssetUrls = {
img: 'src',
image: 'xlink:href',
'b-avatar': 'src',
'b-img': 'src',
'b-img-lazy': ['src', 'blank-src'],
'b-card': 'img-src',
'b-card-img': 'src',
'b-card-img-lazy': ['src', 'blank-src'],
'b-carousel-slide': 'img-src',
'b-embed': 'src'
}
return options
}),
config.plugin('html')
.tap(args => {
args[0].title = "onSpot"
return args
})
}
}