This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vue-cli-plugin-vuetify/index.js
2019-08-11 20:48:02 +02:00

35 lines
942 B
JavaScript

module.exports = (api) => {
const hasVuetifyLoader = Boolean(
api.service.pkg.devDependencies['vuetify-loader'] ||
api.service.pkg.dependencies['vuetify-loader']
)
if (hasVuetifyLoader) {
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')
api.chainWebpack(config => {
config.plugin('VuetifyLoaderPlugin')
.use(VuetifyLoaderPlugin)
})
}
// Resolve asset references from components
api.chainWebpack(config => {
config.module
.rule('vue')
.use('vue-loader')
.tap(options => ({
...options,
transformAssetUrls: {
// v-app-bar extends v-toolbar
'v-app-bar': 'src',
// v-carousel-item extends v-img
'v-carousel-item': ['src', 'lazy-src'],
'v-img': ['src', 'lazy-src'],
'v-navigation-drawer': 'src',
'v-parallax': 'src',
'v-toolbar': 'src',
},
}))
})
}