@ovos-media/vite-plugins
v1.5.0
Published
A set of vite plugins, developed by ovos media gmbh.
Downloads
1,894
Keywords
Readme
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