# @vuetify/vite-plugin

> A Vite plugin for treeshaking Vuetify components and more

Latest version **1.0.0-alpha.11** (published 2022-05-21) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @vuetify/vite-plugin
pnpm add @vuetify/vite-plugin
yarn add @vuetify/vite-plugin
bun add @vuetify/vite-plugin
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.11 |
| Published | 2022-05-21 |
| First published | 2021-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 2 |
| Unpacked size | 17.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 511 |
| Author | Kael Watts-Deuchar |
| Maintainers | elijahkotyluk, bdeo, johnjleider, nekosaur, kaelwd, jacekkarczmarczyk, amajesticpotatoe |

## Links

- npm: https://www.npmjs.com/package/@vuetify/vite-plugin
- Repository: https://github.com/vuetifyjs/vuetify-loader
- Homepage: https://github.com/vuetifyjs/vuetify-loader/packages/vite-plugin
- Issues: https://github.com/vuetifyjs/vuetify-loader/issues
- npm.io page: https://npm.io/package/@vuetify/vite-plugin

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^4.3.3
- [@vuetify/loader-shared](https://npm.io/package/@vuetify/loader-shared.md) ^1.4.0

## Recent versions

- 1.0.0-alpha.11 (latest) — 2022-05-21
- 1.0.0-alpha.10 — 2021-12-10
- 1.0.0-alpha.9 — 2021-11-17
- 1.0.0-alpha.8 — 2021-11-15
- 1.0.0-alpha.7 — 2021-11-11
- 1.0.0-alpha.6 — 2021-11-11
- 1.0.0-alpha.5 — 2021-10-03
- 1.0.0-alpha.4 — 2021-09-17
- 1.0.0-alpha.3 — 2021-09-11
- 1.0.0-alpha.2 — 2021-08-31
- 1.0.0-alpha.1 — 2021-08-30
- 1.0.0-alpha.0 — 2021-08-28

## README

# @vuetify/vite-plugin

<div align="center">
  <a href="https://www.patreon.com/kaelwd">
    <img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patron" />
  </a>
  <br>
  <a href="https://opencollective.com/vuetify">
    <img src="https://opencollective.com/static/images/become_sponsor.svg" alt="Donate to OpenCollective">
  </a>
</div>

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

export default createVuetify()
```

## Style loading
### Customising variables
```js
// vite.config.js
plugins: [
  vue(),
  vuetify({ styles: 'expose' }),
]
```
```js
// plugins/vuetify.js
import './main.scss'
import { createVuetify } from 'vuetify'

export default createVuetify()
```
```scss
// main.scss
@use 'vuetify/styles' with (
  $color-pack: false,
  $utilities: false,
);
```

### Remove all style imports
```js
// vite.config.js
plugins: [
  vue(),
  vuetify({ styles: 'none' }),
]
```
```js
// 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:

```js
// vite.config.js
plugins: [
  vue(),
  vuetify({ styles: 'sass' }),
]
```

---
_Source: https://npm.io/package/@vuetify/vite-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
