Skip to content

Commit f84287e

Browse files
committed
add: plugin paths now found relative to cwd
This allows css-moduleify to be installed in a different directory than the post-css plugins and still allow them to be found.
1 parent 066a603 commit f84287e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function (browserify, options) {
2929
return name;
3030
}
3131

32-
var plugin = require(name);
32+
var plugin = require(require.resolve(name));
3333

3434
if (name in options) {
3535
plugin = plugin(options[name]);

0 commit comments

Comments
 (0)