docs: fix getting started UX issues from #7510#8119
docs: fix getting started UX issues from #7510#8119KumarMunesh12 wants to merge 2 commits intowebpack:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Hello Maintainer, Please Review my PR, Tell me what improvements need. Thank You |
| </div> | ||
|
|
||
| Then run `webpack` on the command-line to create `bundle.js`. | ||
| Then run `npx webpack` on the command-line to create `bundle.js`. |
There was a problem hiding this comment.
Thanks! Got it, will i revert that line back to webpack.
Should I leave it as-is or add a note pointing to the npm scripts
approach? Happy to do either.
There was a problem hiding this comment.
You can use webpack after installation without extra scripts
|
use our pr template. |
|
hello maintainer @evenstensberg, i hope you are fit and fine. I was enable to check update on it because of my mid exam,and also iam unaware of pr template. if there is any invalid solution so please guide me to give my best.As i apply for Gsoc 26 it is effecting my proposal because i mention this pr in proposal. |
Summary
Fixes several documentation UX issues reported in #7510 by a user
who walked through webpack.js.org from scratch and hit multiple
stumbling blocks as a first-time user.
Changes made
src/components/Splash/second/left.mdxmode: "development"to the samplewebpack.config.jsproduces a red warning:
"mode option has not been set"—confusing for new users following the getting started example
src/components/Splash/second/right.mdx"Prefer a video walkthrough?"to:
"Prefer a video walkthrough instead? See the ... guide."instruction rather than an optional alternative
src/content/index.mdxwebpacktonpx webpackin the run commandwebpackin their $PATH —npx webpackworks out of the box without a global install
What was NOT changed
The
css-loaderpage (webpack.js.org/loaders/css-loader/) alsohas issues mentioned in #7510 — specifically:
import * as css from "file.css"should beimport "./file.css"(bare path causes
Can't resolve 'file.css'error)webpack.config.jsexample needs// ...ellipsis linesinstall style-loader"
However, the css-loader docs live in the separate
webpack/css-loaderrepository (not in
webpack.js.org), so those fixes will be submittedas a separate PR to that repo.
Related
Closes #7510 (partial — items 2, 3, 4 from the original report)
Output