Skip to content

Add documentation for Rule.use as a function #2694

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

Merged
merged 6 commits into from
Dec 31, 2018
Merged

Conversation

bew
Copy link
Contributor

@bew bew commented Dec 5, 2018

Adds some documentation for using a function for Rule.use configuration.

For the object passed to the function, I'm not surewhat realResource, compiler & resourceQuery are for, and I'd appreciate some help to explain them succinctly , thank you

Fixes #2691

Copy link
Member

@EugeneHlushko EugeneHlushko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of comments

@montogeek
Copy link
Member

@bew Friendly ping

EugeneHlushko and others added 2 commits December 18, 2018 18:46
Co-Authored-By: bew <bew@users.noreply.github.com>
@bew
Copy link
Contributor Author

bew commented Dec 19, 2018

I'm still not sure what resourceQuery is, it's never populated in the webpack config we use, anyone can help? Thank you

@EugeneHlushko
Copy link
Member

The build fails, markdown lint doesnt pass with error:

./src/content/configuration/module.md: 324: MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "- `resource`: The path to the ..."]

@EugeneHlushko
Copy link
Member

ResourceQuery needs a look, dont have time today. If you dont have time either i would suggest a change

@EugeneHlushko EugeneHlushko merged commit cb25c9b into webpack:master Dec 31, 2018
@EugeneHlushko
Copy link
Member

Thanks!

@bew bew deleted the patch-1 branch December 31, 2018 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants