Skip to content

Commit 0492aca

Browse files
committed
Fix link path in code example for getting started.
Change: look up one directory "../" to find js files. Otherwise, if you directly open index.html in your browser the files won't be found.
1 parent 9bd2c9d commit 0492aca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/guides/get-started.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ contributors:
99
- johnstew
1010
- simon04
1111
- aaronang
12+
- jecoopr
1213
---
1314

1415
webpack is a tool to build JavaScript modules in your application. To start using `webpack` from its [cli](/api/cli) or [api](/api/node), follow the [Installation instructions](/guides/installation).
@@ -58,7 +59,7 @@ __index.html__
5859
<script src="https://unpkg.com/[email protected]"></script>
5960
</head>
6061
<body>
61-
<script src="app/index.js"></script>
62+
<script src="../app/index.js"></script>
6263
</body>
6364
</html>
6465
```
@@ -97,8 +98,8 @@ We also need to change `index.html` to expect a single bundled js file.
9798
- <script src="https://unpkg.com/[email protected]"></script>
9899
</head>
99100
<body>
100-
- <script src="app/index.js"></script>
101-
+ <script src="dist/bundle.js"></script>
101+
- <script src="../app/index.js"></script>
102+
+ <script src="../dist/bundle.js"></script>
102103
</body>
103104
</html>
104105
```

0 commit comments

Comments
 (0)