1.0.0 • Published 2 months ago

@urbit/vite-plugin-urbit v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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

Thanks to @liam-fitzgerald for starting this

Usage

import urbitPlugin from "@urbit/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;
}
2.0.1

2 months ago

2.0.0

2 months ago

1.0.0

1 year ago

1.0.0-dev1

1 year ago

1.0.0-dev

1 year ago

0.8.0

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.5.1

3 years ago

0.1.0

3 years ago