You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: src/content/guides/getting-started.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ contributors:
17
17
- ATGardner
18
18
- ayvarot
19
19
- bjarki
20
+
- ztomasze
20
21
- Spiral90210
21
22
---
22
23
@@ -283,7 +284,6 @@ __package.json__
283
284
"name": "webpack-demo",
284
285
"version": "1.0.0",
285
286
"description": "",
286
-
"main": "index.js",
287
287
"scripts": {
288
288
"test": "echo \"Error: no test specified\" && exit 1",
289
289
+ "build": "webpack"
@@ -320,7 +320,8 @@ main.js 70.4 KiB 0 [emitted] main
320
320
321
321
WARNING in configuration
322
322
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
+
324
325
```
325
326
326
327
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