0.3.9 • Published 1 year ago

jitar-vite-plugin v0.3.9

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

Vite plugin for Jitar

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-vite-plugin'

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.3.9

1 year ago

0.3.6

1 year ago

0.3.7

1 year ago

0.3.4

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago