-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
comhon-project edited this page Aug 13, 2023
·
6 revisions
- install
query-kitwith npm :
> npm i @query-kit/vue
- then import and use
query-kitplugin (in yourapp.jsormain.jsor equivalent) :
import { createApp } from 'vue'
import { plugin } from "@query-kit/vue";
import App from 'App.vue'
const config = {/* here goes your config */};
createApp(App).use(plugin, config).mount('#app')Warning!
If you use vite, in your dev environnement, you have to specify the following vite configuration (vite.config.js) :
optimizeDeps: {
exclude: ['@query-kit/vue'],
},If you want to use a predefined style, you must :
- install theme package
> npm i @query-kit/themes
- then import theme (in your
app.jsormain.jsor equivalent) :
import "@query-kit/themes/default";