prc b6c02717e6 Upload complete no-internet building environment. | vor 1 Jahr | |
---|---|---|
.. | ||
dist | vor 1 Jahr | |
CHANGELOG.md | vor 1 Jahr | |
LICENSE.md | vor 1 Jahr | |
README.md | vor 1 Jahr | |
package.json | vor 1 Jahr |
// vite.config.js
plugins: [
vue(),
vuetify({ autoImport: true }), // Enabled by default
]
// plugins/vuetify.js
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
export default createVuetify()
// vite.config.js
plugins: [
vue(),
vuetify({ styles: { configFile: 'src/settings.scss' } }),
]
// plugins/vuetify.js
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
export default createVuetify()
// settings.scss
@use 'vuetify/settings' with (
$color-pack: false,
$utilities: false,
);
settings.scss
can be used in your own components to access vuetify's variables.
// vite.config.js
plugins: [
vue(),
vuetify({ styles: 'expose' }),
]
// plugins/vuetify.js
import './main.scss'
import { createVuetify } from 'vuetify'
export default createVuetify()
// main.scss
@use 'vuetify' with (
$color-pack: false,
$utilities: false,
);
// vite.config.js
plugins: [
vue(),
vuetify({ styles: 'none' }),
]
// plugins/vuetify.js
import { createVuetify } from 'vuetify'
export default createVuetify()
Vuetify 3 uses precompiled css by default, these imports can optionally be modified to point to sass files instead:
// vite.config.js
plugins: [
vue(),
vuetify({ styles: 'sass' }),
]
https://github.com/vitejs/vite/tree/main/packages/plugin-vue#asset-url-handling
// vite.config.js
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
export default {
plugins: [
vue({
template: { transformAssetUrls }
}),
vuetify(),
],
}