1.5.0 • Published 12 months ago

@ovos-media/vite-plugins v1.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

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

1.5.0

12 months ago

1.4.0

12 months ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.2

1 year ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago