Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

minicss/core

Repository files navigation

core

MiniCSS core package

Test Coverage License NPM Version NPM Monthly Downloads NPM Total Downloads NPM Bundle Size (Minified + GZip) NPM Bundle Size (Minified) Built with TypeScript Tested With Jest Open GitHub Issues Open GitHub Pull Requests Github Stars Github Forks

Table of Content

Installation

npm i @minicss/core

Usage

import MiniCSS from "@minicss/core";
const miniCSS = new MiniCSS();
// First, you need to add attribute selectors.
miniCSS.addAttributeSelector(selector);
// Then, you can optimize nodes based on attribute selectors. (optional)
miniCSS.optimize();
// Then, you can replace the attribute selector operators & values.
const { operator, value } = miniCSS.attributeSelector(selector);
// Finally, you can rename classes/ids/variables/keyframes
const className = miniCSS.class("class");
const id = miniCSS.id("id");
const variable = miniCSS.variable("variable");
const keyframe = miniCSS.keyframe("keyframe");

API usage documents are available here.

Versioning

We use SemVer for versioning. For the versions available, see the releases on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

AltStyle によって変換されたページ (->オリジナル) /