Skip to content

Commit

Permalink
Update PostCSS transform example (fkling#148)
Browse files Browse the repository at this point in the history
to match preferred code style in transform plugins

for fkling#147

see postcss/postcss-plugin-boilerplate@4d05aab
  • Loading branch information
danharper authored and fkling committed Sep 11, 2016
1 parent a6d7b4e commit 155bea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsers/css/transformers/postcss/codeExample.txt
Expand Up @@ -2,9 +2,9 @@ import * as postcss from 'postcss';

export default postcss.plugin('postcss-reverse-props', (options = {}) => {
// Work with options here
return css => {
return root => {
// Transform CSS AST here
css.walkRules(rule => {
root.walkRules(rule => {
// Transform each rule here
rule.walkDecls(decl => {
// Transform each property declaration here
Expand Down

0 comments on commit 155bea8

Please sign in to comment.