1.0.0-alpha.5 • Published 2 years ago

@minicss/postcss v1.0.0-alpha.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

postcss

MiniCSS PostCSS Plugin

Test Coverage License NPM Version NPM Monthly Downloads NPM Total Downloads Built with TypeScript Tested With Jest Open GitHub Issues Open GitHub Pull Requests Github Stars Github Forks

Table of Content

Installation

npm i @minicss/postcss

Usage

Create the postcss.config.js file:

module.exports = {
  plugins: {
    "@minicss/postcss": {},
  },
};

Options

NameTypeDefaultDescription
classesbooleantrueShould the plugin rename css classes
idsbooleantrueShould the plugin rename css ids
keyframesbooleantrueShould the plugin rename css keyframes & animation names (in case of css animation, name should be either first parameter or last parameter if it starts with duration (a digit). if the name is a css variable then this won't work)
variablesbooleantrueShould the plugin rename css variables
outputMapFilestring-Where to write the output map to be used outside the plugin

* means the options is required.

Benchmarks

First build the project:

npm run build

Then run the command below:

npm run benchmark

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.