Skip to content

Conversation

@Blackskyliner
Copy link
Contributor

@Blackskyliner Blackskyliner commented Feb 15, 2018

The plugin parameter is described as {string} but in fact we want to have instances of a Webpack plugin here. So I think we should use object here, which reflects the fact that all examples and known usages use an object there...

The `plugin` parameter is describes as `{string}` but in fact we want to have instances of a Webpack plugin here. So I think we should use `object` here, which reflects the fact that all examples and known usages use an object there...
@weaverryan
Copy link
Member

Thank you Christoph!

@weaverryan weaverryan merged commit 6d9525a into symfony:master Feb 28, 2018
weaverryan added a commit that referenced this pull request Feb 28, 2018
This PR was merged into the master branch.

Discussion
----------

Fix 'plugin' typehint on Encore.addPlugin

The `plugin` parameter is described as `{string}` but in fact we want to have instances of a Webpack plugin here. So I think we should use `object` here, which reflects the fact that all examples and known usages use an object there...

Commits
-------

6d9525a Fix 'plugin' typehint on Encore.addPlugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants