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@2lands there will no longer be anythis.options. Since query can now be a vanilla object instead of a string, havingoptionsreside in query is a quick, non-destructive fix.See:
optionsto children. webpack-contrib/extract-text-webpack-plugin#266