Skip to content

loadPostcssConfig

Loads the PostCSS plugins a stylesheet goes through, without the CSS-module scoping: the project’s PostCSS configuration when postcss is on, and Tailwind ahead of it when tailwind is on and the configuration does not already run it.

Import:

import { loadPostcssConfig } from '@mnaoumov/obsidian-dev-toolkit/bundlers/obsidian-plugin-transforms';

Signature:

function loadPostcssConfig(params: LoadPostcssConfigParams): Promise<PostcssConfig>

Parameters:

Parameter Type Description
params LoadPostcssConfigParams The LoadPostcssConfigParams.

Returns: Promise<PostcssConfig> — A Promise that resolves to the PostcssConfig; its plugins is empty when neither applies.


Links to this page: