Back to Unocss

SvelteKit component library using `@unocss/svelte-scoped/preprocess`

examples/sveltekit-preprocess/README.md

66.6.8874 B
Original Source

SvelteKit component library using @unocss/svelte-scoped/preprocess

Use UnoCSS via a Svelte preprocessor to enable usage when building a component library. Read the @unocss/svelte-scoped/preprocess docs for more information.

SvelteKit Library Usage

To develop your library, run the following commands:

bash
npm install
npm run dev

To build your library:

bash
npm run package

To create a production version of your showcase app:

bash
npm run build

You can preview the production build with npm run preview.

To publish your library to npm:

bash
npm run publish