← @mortar-kit/core/render

stylesOnlyfunction

import { stylesOnly } from '@mortar-kit/core/render'

function stylesOnly(manifest: RenderManifest): RenderManifest

A copy of manifest that resolves to CSS only. Solid's renderer links every CSS file a rendered module needs and adds a modulepreload for each JS file the client entry imports; noScripts drops the scripts but not those preloads. A build manifest keeps each module's file but folds the CSS of everything it imports into the module itself and drops the imports, so nothing is left to preload. The dev resolver answers with the same CSS and no JS.

Parameters

manifest: RenderManifest

Returns

RenderManifest