@onlook/svelte
v2.0.3
Published
Svelte preprocessor for onlook.dev
Downloads
8
Readme
Onlook svelte preprocessor
Usage
- Install preprocessor library
npm i --save-dev @onlook/svelte
- Update
svelte.config.js
import adapter from "@sveltejs/adapter-auto";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
// Import preprocessor
import { onlookPreprocess } from "@onlook/svelte";
import path from "path";
const config = {
preprocess: [
vitePreprocess(),
// Add preprocessor here
onlookPreprocess({
root: path.resolve("."),
}),
],
kit: {
adapter: adapter(),
},
};
export default config;
For more, see: https://kit.svelte.dev/docs/configuration