Skip to content

Commit c8d2eed

Browse files
authored
Merge pull request #396 from webpack/minor-text-fixes
Minor text fixes
2 parents 4ea6f0a + 3db4d3c commit c8d2eed

File tree

5 files changed

+21
-13
lines changed

5 files changed

+21
-13
lines changed

content/concepts/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ contributors:
77
- grgur
88
---
99

10-
*webpack* is a _module bundler_ for modern JavaScript applications. It is [incredibly configurable](/configuration), however, there are **4 Core Concepts** we feel you should understand before you get started!
10+
*webpack* is a _module bundler_ for modern JavaScript applications. It is [incredibly configurable](/configuration), however, there are **Four Core Concepts** we feel you should understand before you get started!
1111

1212
As part of your webpack learning journey, we wrote this document aimed to give you a **high-level** overview of these concepts, while still providing links to concept specific use-cases.
1313

content/configuration/other-options.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ amd: {
2222

2323
?> I don't think this is very clear, at least not without a link pointing to what this might be used for.
2424

25+
2526
## `bail`
2627

2728
`boolean`
2829

29-
Fail out on the first error instead of tolerating it. By default webpack will log these errors in red in the terminal, as well as the browser console when using HMR, but continue bundling. Turning it on:
30+
Fail out on the first error instead of tolerating it. By default webpack will log these errors in red in the terminal, as well as the browser console when using HMR, but continue bundling. To enable it:
3031

3132
```js
3233
bail: true
3334
```
3435

35-
will force webpack to exit it's bundling process.
36+
This will force webpack to exit its bundling process.
3637

37-
W> Note that this will become the default behavior in webpack 2.x
3838

3939
## `cache`
4040

@@ -58,8 +58,10 @@ export default {
5858
```
5959

6060
W> Don't share the cache between calls with different options.
61+
6162
?> Elaborate on the warning and example - calls with different configuration options?
6263

64+
6365
## `debug`
6466

6567
`boolean`
@@ -80,6 +82,7 @@ Expose custom values into the loader context.
8082

8183
?> Add an example...
8284

85+
8386
## `profile`
8487

8588
`boolean`
@@ -88,18 +91,21 @@ Capture a "profile" of the application, including statistics and hints, which ca
8891

8992
T> Use the [StatsPlugin](https://www.npmjs.com/package/stats-webpack-plugin) for more control over the generated profile.
9093

94+
9195
## `recordsPath`
9296

9397
Description...
9498

9599
?> Add example and description as well as details on `recordsInputPath` and `recordsOutputPath`.
96100

101+
97102
## `recordsInputPath`
98103

99104
Description...
100105

101106
?> Add example and description as well as details on `recordsInputPath` and `recordsOutputPath`.
102107

108+
103109
## `recordsOutputPath`
104110

105111
Description...

content/get-started/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ __index.html__
5050
<html>
5151
<head>
5252
<title>Webpack demo</title>
53-
<script src='https://unpkg.com/[email protected]' type='text/javascript'></script>
53+
<script src="https://unpkg.com/[email protected]" type="text/javascript"></script>
5454
</head>
5555
<body>
56-
<script src='app/index.js' type='text/javascript'></script>
56+
<script src="app/index.js" type="text/javascript"></script>
5757
</body>
5858
</html>
5959
```
@@ -83,12 +83,12 @@ Also we will need to change the `index.html` to expect a single bundled js file.
8383
<html>
8484
<head>
8585
<title>Webpack demo</title>
86-
- <script src='https://unpkg.com/[email protected]' type='text/javascript'></script>
87-
- <script src='app/index.js' type='text/javascript'></script>
88-
+ <script src='dist/bundle.js' type='text/javascript'></script>
86+
- <script src="https://unpkg.com/[email protected]" type="text/javascript"></script>
87+
- <script src="app/index.js" type="text/javascript"></script>
88+
+ <script src="dist/bundle.js" type="text/javascript"></script>
8989
</head>
9090
<body>
91-
<div id='root'></div>
91+
<div id="root"></div>
9292
</body>
9393
</html>
9494
```

content/guides/code-splitting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ contributors:
55
- pksjce
66
---
77

8-
Code splitting is the most compelling feature for `webpack` usage. You can split your code into various bundles and load them on demand with`webpack`. It allows to tweak an application for these optimisations using the configuration.
8+
Code splitting is the most compelling feature for `webpack` usage. You can split your code into various bundles and load them on demand with `webpack`. It allows to tweak an application for these optimisations using the configuration.
99
You can load them at a later time in your code or in a specific route only or on an event from the user even.
1010

1111
There are mainly two kind of code-splits that need to be accomplished with `webpack`
@@ -32,4 +32,4 @@ Learn [how to split css](/guides/code-splitting-css) using the ExtractTextWebpac
3232

3333
A typical application uses third party libraries for framework/functionality needs. Particular versions of these libraries are used and code here does not change often. However, the application code changes frequently. Bundling application code with third party code would be inefficient. This is because the browser can cache asset files based on the cache header. To take advantage of this, we want to keep the hash of the vendor files constant regardless of application code changes. We can do this only when we separate the bundles for vendor and application code.
3434

35-
Learn [how to split vendor/library](/guides/code-splitting-libraries) code using the CommonsChunkPlugin.
35+
Learn [how to split vendor/library](/guides/code-splitting-libraries) code using the CommonsChunkPlugin.

content/guides/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
title: Guides
33
---
44

5-
This section contains guides for understanding and mastering the wide variety of tools and features that webpack offers. The first is a simple guide that takes you through [installation](). The guides get progressively more advanced as you go on. Most serve as a starting point, and once completed you should feel more comfortable diving into the actual [documentation]().
5+
This section contains guides for understanding and mastering the wide variety of tools and features that webpack offers. The first is a simple guide that takes you through [installation](/guides/installation).
6+
7+
The guides get progressively more advanced as you go on. Most serve as a starting point, and once completed you should feel more comfortable diving into the actual [documentation](/configuration).

0 commit comments

Comments
 (0)