-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
API - Loaders #21
Comments
Assumption: We'll want to keep "Getting started" simple and targeted (mostly) for newbies. If that assumption is wrong, these suggestions will not be relevant. Avoid mixing of syntax Exclamation syntax - avoid mixing css-loader vs. css - avoid mixing
Referring to "precedence search order" and other config options and API, just to understand the difference between loader name syntax in a "getting started" guide should be avoided. Keep it simple at all costs - we should stick to 1 syntax convention and keep the advanced ones hidden away from a Getting Started section. Consider skipping documenting the CLI. I think most devs are using webpack.config.js and a Getting started guide should reflect that. Using the CLI is a bit more advanced. Consider using Babel as an example. A lot of devs are using Babel to the point where it would be really helpful for many to get started using Babel. |
👍 It's good if we can be opinionated. We can even go as far as to deprecate some ways of doing things in the future (say
Yup. I've defaulted to It's better to go with verbose syntax by default. If I remember right, webpack 2 provides a nicer variant for
Yeah, going with full names could be a good idea. The main problem with abbreviations is that the tooling doesn't really warn you if you write something like So as an alternative we could implement the functionality to webpack-validator and suggest using it. That would take some pain away. But going with full names would be valid too. Even then validation would be useful.
I've seen an amazing amount of problems around the CLI. Its API doesn't match configuration 100% (esp. webpack-dev-server is painful) and often you end up with hard to debug issues. It's easy to end up using I might go as far as to deprecate most of the CLI and suggest other methods but that might be just me. From my pov it would be better to push CLI outside of webpack core and let the community come with stronger solutions. If webpack core provided a strong schema, you could generate something on top of that and so on. I would take a strong schema over a CLI any day.
Yeah, that could be fitting for a starter tutorial as it's a common problem. I'll be adding a Babel chapter to my webpack book in any case as I want to dig a bit deeper there. |
@bebraw @TheLarkInn I can start taking a stab at this one if you guys would like! I was thinking about making a simple combination of both the 1.* loader docs (https://webpack.github.io/docs/loaders.html & https://webpack.github.io/docs/using-loaders.html pages together) along with comments above. Overall, just trying to make it as readable & simple as possible. Let me know! |
@MarkPieszak Sure! Go ahead. 👍 |
@MarkPieszak no pressure just following up since we are about everyone assigned to issues and in progress on them. If you need help feel free to reach out. |
Great! Yeah I'll get moving on this one sorry have been crazy sick the past 2 days 😓 |
Like i said it is no pressure and just reach out and I can give you some guidance. |
Fixed with #364 😍😍😍😍 |
entry-context.md
Stub.
Feel free to comment here if you have ideas on what this guide should cover. Link to potential resources too.
Reference: https://webpack.github.io/docs/loaders.html
The text was updated successfully, but these errors were encountered: