@maizzle/framework
Version:
Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.
27 lines (26 loc) • 997 B
TypeScript
import { MaizzleConfig } from "./types/config.js";
import { ViteDevServer } from "vite";
//#region src/serve.d.ts
interface ServeOptions {
config?: Partial<MaizzleConfig> | string;
/** Override the dev server port (takes precedence over config.server.port) */
port?: number;
/** Expose the server on the network (e.g. --host) */
host?: boolean | string;
/** When true, suppresses the startup banner/URL output. */
silent?: boolean;
}
/**
* Start the Maizzle dev server.
*
* Creates two things:
* 1. A Vite dev server for the dev UI (sidebar + preview, with Vue + Tailwind for the UI itself)
* 2. A Renderer instance for SSR rendering email templates
*
* Template rendering goes through the Renderer, not the Vite dev server.
*/
declare function serve(options?: ServeOptions): Promise<ViteDevServer>;
declare function printBanner(server: ViteDevServer, startupTime?: number): void;
//#endregion
export { ServeOptions, printBanner, serve };
//# sourceMappingURL=serve.d.ts.map