0.7.4 • Published 1 month ago

@jitar/plugin-vite v0.7.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Jitar Plugin for Vite

This plugin allows you to use Vite to build your Jitar app.

Installation

npm install --save-dev @jitar/vite-plugin

Usage

The plugin needs to be added to the vite config file.

// vite.config.js
import { defineConfig } from 'vite'
import jitar from '@jitar/plugin-vite'

export default defineConfig({
  plugins: [
    jitar(srcPath, jitarPath, jitarUrl, [segments])
  ]
})

The plugin takes 4 arguments:

  • srcPath - The path to the app source files. In most cases this is the src folder.
  • jitarPath - The path to the source files used by Jitar. This path is relative to the source root. We like to use shared (which points to src/shared), but feel free to use something else.
  • jitarUrl - The URL of the Jitar instance. Jitar uses by default http://localhost:3000, but can be configured differently in the Jitar config.
  • segments - The segments to use for the client app. This is an array of strings. The default is an empty array.
0.7.4

1 month ago

0.7.1

3 months ago

0.7.0

3 months ago

0.6.0

4 months ago

0.5.1

4 months ago

0.5.0

5 months ago

0.4.1

10 months ago

0.4.2

7 months ago

0.4.0

11 months ago