https://github.com/lamualfa/postcss-minion
Using PostCSS as Minion Extractor
https://github.com/lamualfa/postcss-minion
minion minion-extractor postcss postcss-plugin
Last synced: about 2 months ago
JSON representation
Using PostCSS as Minion Extractor
- Host: GitHub
- URL: https://github.com/lamualfa/postcss-minion
- Owner: lamualfa
- License: wtfpl
- Created: 2020-12-25T16:52:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-25T17:08:27.000Z (over 5 years ago)
- Last Synced: 2025-05-25T20:47:55.959Z (about 1 year ago)
- Topics: minion, minion-extractor, postcss, postcss-plugin
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://npmjs.com/package/postcss-minion)
[](https://github.com/lamualfa/postcss-minion/blob/master/LICENSE)
# postcss-minion
Use PostCSS as a [Minion Extractor](https://github.com/lamualfa/minion#extractor).
# Usage
**postcss.config.js**
```js
module.exports = {
plugins: [
require('postcss-minion')(options)
],
};
```
# Options
### `classMapsFieldName : string`
Field name that will be used to store the Class Maps in the `global` object. Default `classMaps`.
### `callback : (classMaps) => void`
a function that will be called when [Class Maps](https://github.com/lamualfa/minion#class-maps) is finished to generated.
### and other options from `postcss-rename` plugin
See [PostCSS Plugin Rename Options](https://github.com/google/postcss-rename#options) for more informations.