vite-plugin-ts-gql
v0.1.2
Published
Vite plugin for starting ts-gql in dev
Downloads
1
Readme
vite-plugin-ts-gql
A Vite plugin for running ts-gql in dev
This will automatically start the @ts-gql/compiler
watch command so you don't have to and can just start vite.
Usage
- Install and set up vite and ts-gql
- Install the plugin
npm i --save-dev vite-plugin-ts-gql
oryarn add -D vite-plugin-ts-gql
- Import the plugin into your vite config
vite.config.{ts,js}
adding it the plugins.
import { vitePluginTsGql } from "vite-plugin-ts-gql";
export default defineConfig({
// Rest of the config
plugins: [vitePluginTsGql() /* rest of the plugins */],
});