Skip to content

alansikora/vite-plugin-simple-gql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ vite-plugin-simple-gql

npm npm

Easily import [.graphql] and [.gql] files using Vite.

Install

npm i vite-plugin-simple-gql -D
# yarn add vite-plugin-simple-gql -D

Usage

add this plugin to vite.config.js

import { defineConfig } from 'vite';
import gql from 'vite-plugin-simple-gql';
export default defineConfig({
  plugins: [gql()]
});

import your graphql files

import MyQuery from './queries/MyQuery.graphql'

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published