This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

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

1.0.2 • Public • Published

vite-plugin-primevue

Very simple Vite plugin for automatic imports of PrimeVue. Ported from vite-plugin-vuetify that was created by @KaelWD

Automatic imports

// vite.config.js
import primevue from '@froxz/vite-plugin-primevue'

plugins: [
  vue(),
  primeVue()
]

Options

// vite.config.js
import primevue from '@froxz/vite-plugin-primevue'

plugins: [
  vue(),
  primeVue({
    sfc: true // Read: https://www.primefaces.org/primevue/setup (Single File Components)
  })
]

Caveats

When using this plugin you can define componets in your template as camel, kebab, or lower case, all will produce same result example:

<template>
    <InputSwitch/>
    <input-switch/>
    <inputswitch/>
</template>

Exceptions (Components that have same name as HTML elements:

<template>
    <Button/> //should be defined as Capitilize
</template>

Readme

Keywords

Package Sidebar

Install

npm i @froxz/vite-plugin-primevue

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

14.6 kB

Total Files

12

Last publish

Collaborators

  • froxz