release: WRNexusJS 0.5.0
This commit is contained in:
@@ -65,7 +65,7 @@ export function createDevAssetServer(
|
||||
mode: Mode,
|
||||
styles?: DevStyles,
|
||||
theme?: ResolvedTheme,
|
||||
uiCss?: string,
|
||||
uiCss?: string | (() => string),
|
||||
schemasJs?: string,
|
||||
pluginAssets: readonly ServedPluginAsset[] = [],
|
||||
): DevAssetServer {
|
||||
@@ -96,7 +96,10 @@ export function createDevAssetServer(
|
||||
if (pathname === "/__wrnexus/schemas.js") return jsResponse(schemasCode);
|
||||
|
||||
if (pathname === "/__wrnexus/ui.css") {
|
||||
return uiCss ? cssResponse(uiCss) : new Response("Not Found", { status: 404 });
|
||||
const currentUiCss = typeof uiCss === "function" ? uiCss() : uiCss;
|
||||
return currentUiCss
|
||||
? cssResponse(currentUiCss)
|
||||
: new Response("Not Found", { status: 404 });
|
||||
}
|
||||
|
||||
if (pathname === "/__wrnexus/theme.css") {
|
||||
|
||||
Reference in New Issue
Block a user