-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: load plugins relative to the current working directory #74
Conversation
/cc @michael-ciniawsky can't wait to have this 😄 |
try { | ||
return require(resolveFrom(cwd, plugin)) | ||
} catch (_err) {} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems to me flatry will be appropriate here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't want to add an extra dependency ;-)
@@ -2,19 +2,22 @@ | |||
"name": "postcss-load-plugins", | |||
"version": "2.3.0", | |||
"description": "Autoload Plugins for PostCSS", | |||
"engines": { "node": ">=0.12" }, | |||
"engines": { | |||
"node": ">=0.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be raised to 4+
@gitscrum @michael-ciniawsky let's get this merged? |
@michael-ciniawsky I need access from npm to publish this |
@michael-ciniawsky ping |
1 similar comment
@michael-ciniawsky ping |
@Scrum @michael-ciniawsky ping |
@l5x sorry, I still do not have access. |
@l5x This is supported in |
Proposed changes
In the spirit zero configuration (#0CJS) trend postcss-load-plugins should be able to require plugins relative to the
ctx.cwd
.Closes #42
Types of changes
Bug (non-breaking change which fixes an issue)Breaking Change (fix or feature which changes existing functionality)Checklist
I have added necessary documentation (if appropriate)Any dependent changes are merged and published in downstream modulesReviewers: @michael-ciniawsky, ...