postcss-calc
- Version 11.2.2
- Published
- 193 kB
- 1 dependency
- MIT license
Install
npm i postcss-calcyarn add postcss-calcpnpm add postcss-calcOverview
PostCSS plugin to reduce calc()
Index
Variables
Functions
Type Aliases
Namespaces
Variables
variable _default
const _default: any;Functions
function pluginCreator
pluginCreator: typeof pluginCreator;Parameter opts
{import('postcss').Plugin}
Type Aliases
type PostCssCalcOptions
type PostCssCalcOptions = { precision?: number | false; warnWhenCannotResolve?: boolean; mediaQueries?: boolean; selectors?: boolean; /** * Serialize fully resolved finite scalar results without calculation syntax. Defaults to `false`. */ unwrapSingleValue?: boolean; /** * Invoked when parse/simplify throws. Replaces the default `result.warn`. */ onParseError?: (error: Error, input: string) => void;};type ResolvedOptions
type ResolvedOptions = Required<Omit<PostCssCalcOptions, 'onParseError'>> & Pick<PostCssCalcOptions, 'onParseError'>;Namespaces
namespace pluginCreator
namespace pluginCreator {}variable postcss
var postcss: boolean;Package Files (1)
Dependencies (1)
Dev Dependencies (7)
Peer Dependencies (1)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/postcss-calc.
- Markdown[](https://www.jsdocs.io/package/postcss-calc)
- HTML<a href="https://www.jsdocs.io/package/postcss-calc"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3255 ms. - Missing or incorrect documentation? Open an issue for this package.
