Skip to content

Commit 2feeda9

Browse files
committed
new option and updated readme
1 parent c19c613 commit 2feeda9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ The following PostCSS plugins are enabled by default:
6161

6262
(i.e. the [CSS Modules] specification).
6363

64-
You can supply your own additional PostCSS Plugins by passing `--use|-u` to `css-modulesify`.
64+
You can override the default PostCSS Plugins (and add your own) by passing `--use|-u` to `css-modulesify`.
6565

66-
In addion you may also wish to configure defined PostCSS plugins by passing `--plugin.option true`.
66+
Or if you just want to add some extra plugins to run after the default, add them to the `postcssAfter` array option (API only at this time).
67+
68+
In addition you may also wish to configure defined PostCSS plugins by passing `--plugin.option true`.
6769

6870
An example of this would be:
6971

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ module.exports = function (browserify, options) {
6464
});
6565
}
6666

67+
plugins = plugins.concat(options.postcssAfter || []);
68+
6769
// keep track of css files visited
6870
var filenames = [];
6971

0 commit comments

Comments
 (0)