Skip to content

Commit 3251a3b

Browse files
ztomaszemontogeek
authored andcommitted
docs(guides) Use main.js throughout guides/getting-started.md (#2281)
* Use main.js throughout getting-started.md Directions currently switch to outputting bundle.js halfway through, without updating index.html. Simpler to point to main.js throughout. Also, removes main: index.js line in webpack.config.js that had snuck back in * Converted timestamp format To satisfy proselint
1 parent e6ec99b commit 3251a3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/content/guides/getting-started.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ contributors:
1717
- ATGardner
1818
- ayvarot
1919
- bjarki
20+
- ztomasze
2021
- Spiral90210
2122
---
2223

@@ -283,7 +284,6 @@ __package.json__
283284
"name": "webpack-demo",
284285
"version": "1.0.0",
285286
"description": "",
286-
"main": "index.js",
287287
"scripts": {
288288
"test": "echo \"Error: no test specified\" && exit 1",
289289
+ "build": "webpack"
@@ -320,7 +320,8 @@ main.js 70.4 KiB 0 [emitted] main
320320

321321
WARNING in configuration
322322
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
323-
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
323+
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/.
324+
324325
```
325326

326327
T> Custom parameters can be passed to webpack by adding two dashes between the `npm run build` command and your parameters, e.g. `npm run build -- --colors`.

0 commit comments

Comments
 (0)