-
-
Notifications
You must be signed in to change notification settings - Fork 210
Allow options
via query
.
#104
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
Conversation
When `webpack@2` lands there will no longer be any `this.options`. Since query can now be a vanilla object instead of a string, having `options` reside in query is a quick, non-destructive fix.
Why extra option instead of having option in root level in query? |
The |
Maybe we should name it as |
Yea we could do |
Thanks! Let me know when a new version is published @ai 😄 |
I just need to update docs, add result.messages with dependencies and we are ready for release. |
👌 |
I finished all changes and ready for release. Could you test this plugin on real application? (Just replace version in |
webpack v2.1.0-beta.25 LoaderOptionsPlugin: ✅ I'm on it... :) |
Will try and get this working will my configuration tonight 😄 |
@ai Running into a few hiccups. First of which is |
@ai The way you've refactored return parseOptions(options, pack); should be: return parseOptions(loader, options, pack); and then: function parseOptions(context, options, pack) {
// ...
options = options.call(context, context); This will break |
You can verify these by checking out the branch here: webpack-config/webpack-config-postcss#10 and running |
@izaakschroeder postcss-load-config issue should be fixed now. |
Thanks @michael-ciniawsky it is 😄 Just waiting on @ai now. |
When
webpack@2
lands there will no longer be anythis.options
. Since query can now be a vanilla object instead of a string, havingoptions
reside in query is a quick, non-destructive fix.See:
options
to children. extract-text-webpack-plugin#266