renameCssAssets
Moves every CSS asset of a bundle into one styles.css, the only stylesheet Obsidian loads.
Import:
import { renameCssAssets } from '@mnaoumov/obsidian-dev-toolkit/bundlers/rollup-compatible';Signature:
function renameCssAssets(assetEmitter: AssetEmitter, bundle: Record<string, BundleOutputLike>): voidParameters:
| Parameter | Type | Description |
|---|---|---|
assetEmitter |
AssetEmitter | The plugin context to emit styles.css through. |
bundle |
Record<string, BundleOutputLike> | The bundle about to be written. |
Returns: void
Links to this page: