@ovos-media/vite-plugins
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

ovos vite plugins

This package contains a few custom vite plugins used by ovos media.

The graphql, po2json and typesForCssModules plugins may be useful for other projects as well.

The source is not yet publicly available on github, only the published package on npm.

Usage

  import { graphql, typesForCssModules, po2json } from '@ovos-media/vite-plugins';

  // add the plugins to your vite config
  const viteConfig = {
    plugins: [
      graphql,
      typesForCssModules({
        // if you want to allow resolving paths from your root src folder, pass the `root` config option
        root: path.resolve(__dirname, 'src'),
      }),
      po2json(),
    ]
  };

Development

# in the vite-plugins folder
yarn link;

# in the folder where you want to use the package
yarn link "@ovos-media/vite-plugins";

# in the vite-plugins folder
yarn watch # this will "build" the declaration files and move the to src code to `dist`, which will be published on npm

# release a new version
# first update the version in package.json and then
npm publish

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @ovos-media/vite-plugins

Weekly Downloads

279

Version

1.5.0

License

MIT

Unpacked Size

27.5 kB

Total Files

8

Last publish

Collaborators

  • es-ovos
  • khaldoun1
  • marcingil
  • flipace
  • bonnevoyager
  • mhawk
  • milanorszagh
  • denis.loncaric
  • ovos_bot
  • adifuchs