https://github.com/minicss/postcss
MiniCSS PostCSS Plugin
https://github.com/minicss/postcss
css min minicss minification minifier minify postcss postcss-plugin typescript
Last synced: 5 months ago
JSON representation
MiniCSS PostCSS Plugin
- Host: GitHub
- URL: https://github.com/minicss/postcss
- Owner: minicss
- License: mit
- Created: 2022-07-16T09:24:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-01T20:00:06.000Z (almost 3 years ago)
- Last Synced: 2025-07-08T18:07:22.690Z (6 months ago)
- Topics: css, min, minicss, minification, minifier, minify, postcss, postcss-plugin, typescript
- Language: CSS
- Homepage:
- Size: 843 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# postcss
MiniCSS PostCSS Plugin
[](https://github.com/minicss/postcss/actions/workflows/test.yml)
[](https://codecov.io/gh/minicss/postcss)
[](https://github.com/minicss/postcss/blob/main/LICENSE)
[](https://www.npmjs.com/package/@minicss/postcss)
[](https://www.npmjs.com/package/@minicss/postcss)
[](https://www.npmjs.com/package/@minicss/postcss)
[](https://www.typescriptlang.org)
[](https://jestjs.io)
[](https://github.com/minicss/postcss/issues)
[](https://github.com/minicss/postcss/pulls)
[](https://github.com/minicss/postcss)
[](https://github.com/minicss/postcss)
## Table of Content
- [Installation](#installation)
- [Usage](#usage)
- [Options](#options)
- [Benchmarks](#benchmarks)
- [Versioning](#versioning)
- [Authors](#authors)
- [License](#license)
## Installation
```shell
npm i @minicss/postcss
```
## Usage
Create the `postcss.config.js` file:
```javascript
module.exports = {
plugins: {
"@minicss/postcss": {},
},
};
```
### Options
| Name | Type | Default | Description |
|:-------------:|:-------:|:-------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| classes | boolean | `true` | Should the plugin rename css classes |
| ids | boolean | `true` | Should the plugin rename css ids |
| keyframes | boolean | `true` | Should 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) |
| variables | boolean | `true` | Should the plugin rename css variables |
| outputMapFile | string | - | Where to write the output map to be used outside the plugin |
> `*` means the options is required.
## Benchmarks
First build the project:
```shell
npm run build
```
Then run the command below:
```shell
npm run benchmark
```
## Versioning
We use [SemVer](http://semver.org) for versioning.
For the versions available, see the [releases on this repository](https://github.com/minicss/postcss/releases).
## Authors
- **Ardalan Amini** - _Core Maintainer_ - [@ardalanamini](https://github.com/ardalanamini)
See also the list of [contributors](https://github.com/minicss/postcss/contributors) who participated in this project.
## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/minicss/postcss/blob/main/LICENSE) file for details.