Skip to content

Commit

Permalink
docs(readme): add description for posthtml, close #73
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Jan 31, 2017
1 parent 74b83e2 commit 31ce171
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ import postLoadPlugins from 'post-load-plugins';
postcss(postLoadPlugins()).process('.test { display: flex; color: #ff0000;} @charset "utf-8";');
// result => .test{display:-ms-flexbox;display:flex;color:red}
```
*Will apply `autoprefixer` with option described in the configuration `"browsers": ["last 2 versions"]` and postcss-csso with default settings*
*Will apply `autoprefixer` with option described in the configuration `"browsers": ["last 2 versions"]` and `postcss-csso` with default settings*
--
### Nodejs with [PostHTML](https://github.com/posthtml/posthtml)
Expand Down Expand Up @@ -131,6 +131,9 @@ posthtml(postLoadPlugins()).process(html);
// <p class="content__text content__text--red">Text</p>
// </div>
```
*Will apply `posthtml-bem` with option described in the configuration `"elemPrefix": "__","modPrefix": "--","modDlmtr": "-"` and `posthtml-beautify` with default settings*
## Options
#### `extends`
Type: `Array`
Expand Down

0 comments on commit 31ce171

Please sign in to comment.