This package has been deprecated

    Author message:

    Renamed to vite-plugin-vuetify

    @vuetify/vite-plugin
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0-alpha.11 • Public • Published

    @vuetify/vite-plugin

    Automatic imports

    // vite.config.js
    plugins: [
      vue(),
      vuetify({ autoImport: true }), // Enabled by default
    ]
    // plugins/vuetify.js
    import 'vuetify/styles'
    import { createVuetify } from 'vuetify'
    
    export default createVuetify()

    Style loading

    Customising 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/styles' with (
      $color-pack: false,
      $utilities: false,
    );

    Remove all style imports

    // vite.config.js
    plugins: [
      vue(),
      vuetify({ styles: 'none' }),
    ]
    // plugins/vuetify.js
    import { createVuetify } from 'vuetify'
    
    export default createVuetify()

    Import sass from source

    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' }),
    ]

    Keywords

    none

    Install

    npm i @vuetify/vite-plugin

    DownloadsWeekly Downloads

    3,606

    Version

    1.0.0-alpha.11

    License

    MIT

    Unpacked Size

    17.8 kB

    Total Files

    11

    Last publish

    Collaborators

    • amajesticpotatoe
    • bdeo
    • elijahkotyluk
    • jacekkarczmarczyk
    • johnjleider
    • kaelwd
    • nekosaur