-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for postcssrc config file * Ensure default options are persisted * Fix support for static postcssrc config * Documented postcssrc usage in README
- Loading branch information
1 parent
0c336ee
commit 9199c17
Showing
5 changed files
with
66 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var postcss = require('postcss') | ||
|
||
var plugin = postcss.plugin('postcss-plugin', function postcssPlugin () { | ||
return function (root, result) { | ||
root.walkRules('.rule', rule => { | ||
rule.replaceWith(postcss.rule({ selector: '.ok-with-postcssrc' })) | ||
}) | ||
} | ||
}) | ||
|
||
module.exports = { | ||
plugins: [plugin] | ||
} |