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

36 lines
942 B
JavaScript
Raw Permalink Normal View History

2019-08-11 18:48:02 +00:00
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',
},
}))
})
}