Socket
Socket
Sign inDemoInstall

vite-plugin-vuetify

Package Overview
Dependencies
Maintainers
7
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-vuetify

A Vite plugin for treeshaking Vuetify components and more


Version published
Weekly downloads
198K
decreased by-3.5%
Maintainers
7
Weekly downloads
 
Created

What is vite-plugin-vuetify?

vite-plugin-vuetify is a Vite plugin that provides seamless integration with Vuetify, a popular Vue.js UI library. It simplifies the process of setting up Vuetify in a Vite project, offering features like automatic component registration, theme customization, and more.

What are vite-plugin-vuetify's main functionalities?

Automatic Component Registration

This feature allows you to automatically register Vuetify components in your Vite project, eliminating the need for manual imports.

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import vuetify from 'vite-plugin-vuetify';

export default defineConfig({
  plugins: [vue(), vuetify()]
});

Custom Theme Configuration

This feature allows you to customize the Vuetify theme directly within your Vite configuration file, making it easy to apply consistent styling across your application.

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import vuetify from 'vite-plugin-vuetify';

export default defineConfig({
  plugins: [vue(), vuetify({
    theme: {
      themes: {
        light: {
          primary: '#1976D2',
          secondary: '#424242',
          accent: '#82B1FF',
          error: '#FF5252',
          info: '#2196F3',
          success: '#4CAF50',
          warning: '#FFC107'
        }
      }
    }
  })]
});

Tree Shaking

Enabling tree shaking helps reduce the bundle size by including only the Vuetify components and styles that are actually used in your project.

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import vuetify from 'vite-plugin-vuetify';

export default defineConfig({
  plugins: [vue(), vuetify({
    treeShake: true
  })]
});

Other packages similar to vite-plugin-vuetify

FAQs

Package last updated on 16 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc