0.8.2 • Published 10 months ago

@jitar/plugin-vite v0.8.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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.8.1

10 months ago

0.8.0

10 months ago

0.8.2

10 months ago

0.7.6

11 months ago

0.7.5

1 year ago

0.7.4

1 year ago

0.7.1

1 year ago

0.7.0

1 year ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.2

2 years ago

0.4.0

2 years ago