@holium/vite-plugin-urbit
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

vite-plugin-urbit

A plugin to setup proxying to a running Urbit on a vite devserver correctly. The plugin also inserts the correct script tags, so that window.ship and window.desk are loaded correctly

Usage

import urbitPlugin from '@holium/vite-plugin-urbit';
// rest of config
plugins: [
  urbitPlugin({
    base: 'bitcoin',
    target: 'http://localhost:8080',
  }),
];

The configuration object is defined as so.

export interface UrbitPluginConfig {
  /**
   * The base that this app will be served at. This should be the same
   * as the `base` property on the docket file
   */
  base: string;
  /**
   * URL of urbit to proxy requests to
   *
   * @example `"http://localhost:8080"`
   */
  target: string;
}

Readme

Keywords

Package Sidebar

Install

npm i @holium/vite-plugin-urbit

Weekly Downloads

0

Version

0.8.0

License

MIT

Unpacked Size

5.61 kB

Total Files

5

Last publish

Collaborators

  • lopsyp_doztun
  • ajlamarc
  • drunkplato