1.9 KiB
1.9 KiB
About
@prozilla-os/shared is a library of shared utility functions for ProzillaOS packages.
Installation
$ 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
// vite.config.ts
import { defineConfig } from "vite";
import { appViteConfig } from "@prozilla-os/shared";
export default defineConfig({
...appViteConfig(__dirname, "src/main.ts")
});