This commit loads the Twind configuration as an actual module rather than evaluating it on the server and then serializing. This allows usage of unserializable plugin functions. Co-authored-by: Elias Sjögreen <eliassjogreen1@gmail.com>
14 lines
423 B
TypeScript
14 lines
423 B
TypeScript
/// <reference no-default-lib="true" />
|
|
/// <reference lib="dom" />
|
|
/// <reference lib="dom.iterable" />
|
|
/// <reference lib="dom.asynciterable" />
|
|
/// <reference lib="deno.ns" />
|
|
|
|
import { start } from "$fresh/server.ts";
|
|
import twindPlugin from "$fresh/plugins/twind.ts";
|
|
|
|
import manifest from "./fresh.gen.ts";
|
|
import twindConfig from "./twind.config.ts";
|
|
|
|
await start(manifest, { plugins: [twindPlugin(twindConfig)] });
|