Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vuetify-loader

Package Overview
Dependencies
Maintainers
7
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuetify-loader

A Webpack plugin for treeshaking Vuetify components and more

  • 2.0.0-alpha.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
140K
decreased by-1.34%
Maintainers
7
Weekly downloads
 
Created

What is vuetify-loader?

The vuetify-loader package is a webpack loader for Vuetify, a popular Vue.js UI library. It provides functionalities to automatically import Vuetify components and styles, optimize the bundle size, and enable tree-shaking for Vuetify components.

What are vuetify-loader's main functionalities?

Automatic Component Import

This feature allows you to automatically import Vuetify components as you use them in your Vue files, eliminating the need to manually import each component.

module.exports = {
  configureWebpack: {
    plugins: [
      new VuetifyLoaderPlugin()
    ]
  }
};

Tree Shaking

Tree shaking is a feature that allows you to include only the components you actually use in your project, reducing the final bundle size.

module.exports = {
  configureWebpack: {
    plugins: [
      new VuetifyLoaderPlugin({
        match (originalTag, { kebabTag, camelTag, path, component }) {
          if (kebabTag.startsWith('core-')) {
            return [camelTag, `import ${camelTag} from '@/components/core/${camelTag.substring(4)}.vue'`]
          }
        }
      })
    ]
  }
};

Style Imports

This feature automatically imports the necessary styles for the Vuetify components you use, ensuring that your application looks as expected without manual style imports.

module.exports = {
  configureWebpack: {
    plugins: [
      new VuetifyLoaderPlugin({
        progressiveImages: true
      })
    ]
  }
};

Other packages similar to vuetify-loader

FAQs

Package last updated on 17 Nov 2021

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