@prozilla-os/shared
About
@prozilla-os/shared
is a library of shared utility functions for ProzillaOS packages.
Installation
sh
$ npm install @prozilla-os/shared
$ yarn add @prozilla-os/shared
$ pnpm add @prozilla-os/shared
Usage
appViteConfig(basePath, entryPath)
Helper function for creating Vite configurations for ProzillaOS apps.
Params
basePath
(string) - Path of base directoryentryPath
(string) - Path of library entry
Example
tsx
// vite.config.ts
import { defineConfig } from "vite";
import { appViteConfig } from "@prozilla-os/shared";
export default defineConfig({
...appViteConfig(__dirname, "src/main.ts")
});
Links
- Demo
- [Docs][docs]
- [GitHub][github]
- [npm][npm]
- [Discord][discord]
- [Ko-fi][ko-fi]
[docs]: [docs]: https://os.prozilla.dev/docs/reference/shared [github]: https://github.com/prozilla-os/ProzillaOS/tree/main/packages/shared [npm]: https://www.npmjs.com/package/@prozilla-os/shared [discord]: https://discord.gg/JwbyQP4tdz [ko-fi]: https://ko-fi.com/prozilla