Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ambar/docz-plugin-style
PostCSS Preset Env + CSS Modlues
https://github.com/ambar/docz-plugin-style
docz docz-plugin postcss
Last synced: 7 days ago
JSON representation
PostCSS Preset Env + CSS Modlues
- Host: GitHub
- URL: https://github.com/ambar/docz-plugin-style
- Owner: ambar
- License: mit
- Created: 2019-03-02T05:39:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-02T05:39:53.000Z (over 5 years ago)
- Last Synced: 2024-08-09T21:13:32.896Z (3 months ago)
- Topics: docz, docz-plugin, postcss
- Language: JavaScript
- Homepage:
- Size: 152 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docz-plugin-style
PostCSS plugin for docz:
- Import `.css` with PostCSS ([postcss-preset-env](https://preset-env.cssdb.org/))
- Import `.module.css` with PostCSS ([postcss-preset-env](https://preset-env.cssdb.org/)) + [CSS Modlues](https://github.com/css-modules/css-modules)## Install
```bash
npm install docz-plugin-style
```## Usage
Add plugin to `doczrc.js`:
```js
import style from 'docz-plugin-style'export default {
plugins: [
style({
// postcss-preset-env options, defaults to `{stage: 3}`
env: {},
}),
],
}
```Import CSS files:
```js
import './styles.css'
import styles from './styles.module.css'
```