Skip to content

Commit 2d9f332

Browse files
Chris Villanuevabebraw
authored andcommitted
Spellcheck Updates For Concept and Guides Pages (#689)
Spellcheck updates.
1 parent 3188964 commit 2d9f332

12 files changed

+39
-29
lines changed

content/concepts/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ import {
106106
} from './';
107107

108108
export class NgCliWebpackConfig {
109-
// TODO: When webpack2 types are finished lets replace all these any types
109+
// TODO: When webpack2 types are finished let's replace all these any types
110110
// so this is more maintainable in the future for devs
111111
public config: any;
112112
private webpackDevConfigPartial: any;

content/concepts/entry-points.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Entry Points
33
sort: 2
44
contributors:
55
- TheLarkInn
6+
- chrisVillanueva
67
---
78

89
Like we mentioned in the [introduction](/get-started/#using-webpack-with-a-config), there are multiple ways to define the `entry` property in your webpack configuration. We will show you the ways you **can** configure the `entry` property, in addition to explaining why it may be useful to you.
@@ -21,7 +22,7 @@ const config = {
2122
module.exports = config;
2223
```
2324

24-
The single entry syntax for the `entry` property is a short hand for:
25+
The single entry syntax for the `entry` property is a shorthand for:
2526

2627
```javascript
2728
const config = {

content/concepts/output.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,4 @@ The filename of the SourceMaps for the JavaScript files. They are inside the `ou
232232
`[hash]` is replaced by the hash of the compilation.
233233

234234
> Default: `"[file].map"`
235+

content/get-started/why-webpack.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Why webpack?
33
contributors:
44
- pksjce
55
- bebraw
6+
- chrisVillanueva
67
sort: 2
78
---
89

@@ -25,7 +26,7 @@ T> Even though webpack core focuses on bundling, you can find a variety of exten
2526

2627
## Comparison
2728

28-
webpack however is not the only module bundler out there. If you are choosing between using webpack or any of the bundler's below, here is a feature by feature comparison on how webpack fares against the current competition.
29+
webpack however is not the only module bundler out there. If you are choosing between using webpack or any of the bundlers below, here is a feature by feature comparison on how webpack fares against the current competition.
2930

3031
| Feature | webpack/webpack | jrburke/requirejs | substack/node-browserify | jspm/jspm-cli | rollup/rollup | brunch/brunch |
3132
|---------|-----------------|-------------------|--------------------------|---------------|---------------|---------------|

content/guides/author-libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ module.exports = {
135135
};
136136
```
137137

138-
This means that your library expects a dependency named `lodash` to be available in the consumers environment.
138+
This means that your library expects a dependency named `lodash` to be available in the consumer's environment.
139139

140140
### Add `libraryTarget`
141141

content/guides/code-splitting-libraries.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ title: Code Splitting - Libraries
33
sort: 4
44
contributors:
55
- pksjce
6+
- chrisVillanueva
67
---
78

89
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.
910

10-
Bundling application code with third party code would be inefficient. This is because the browser can cache asset files based on the cache header and files can be cached without needing to call the cdn again if it's contents don't change. To take advantage of this, we want to keep the hash of the vendor files constant regardless of application code changes.
11+
Bundling application code with third party code would be inefficient. This is because the browser can cache asset files based on the cache header and files can be cached without needing to call the cdn again if its contents don't change. To take advantage of this, we want to keep the hash of the vendor files constant regardless of application code changes.
1112

1213
We can do this only when we separate the bundles for vendor and application code.
1314

content/guides/dependency-management.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Dependency Management
33
sort: 6
44
contributors:
55
- ndelangen
6+
- chrisVillanueva
67
---
78

89
> es6 modules
@@ -92,6 +93,6 @@ The exported function has 3 properties: `resolve`, `keys`, `id`.
9293
r.keys().forEach(key => cache[key] = r(key));
9394
}
9495
importAll(require.context('../components/', true, /\.js$/));
95-
// At build-time cache will be polulated with all required modules.
96+
// At build-time cache will be populated with all required modules.
9697
```
9798
- `id` is the module id of the context module. This may be useful for `module.hot.accept`.

content/guides/development-vagrant.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Development - Vagrant
33
sort: 12
44
contributors:
55
- SpaceK33z
6+
- chrisVillanueva
67
---
78

89
If you have a more advanced project and use [Vagrant](https://www.vagrantup.com/) to run your development environment in a Virtual Machine, you'll often want to also run webpack in the VM.
@@ -67,7 +68,7 @@ The server should be accessible on `http://10.10.10.61:8080` now. If you make a
6768

6869
## Advanced Usage with nginx
6970

70-
To mimick a more production-like environment, it is also possible to proxy the webpack-dev-server with nginx.
71+
To mimic a more production-like environment, it is also possible to proxy the webpack-dev-server with nginx.
7172

7273
In your nginx config file, add the following:
7374

content/guides/lazy-load-react.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ title: Lazy Loading - React
33
sort: 14
44
contributors:
55
- iammerrick
6+
- chrisVillanueva
67
---
78

89
A component can lazily load dependencies without its consumer knowing using higher order functions, or a consumer can lazily load its children without its children knowing using a component that takes a function and collection of modules, or some combination of both.
910

1011
## LazilyLoad Component
1112

12-
Lets have a look at a consumer choosing to lazily load some components. The `importLazy` is simply a function that returns the `default` property, this is for Babel/ES2015 interoperability. If you don't need that you can omit the `importLazy` helper. The `importLazy` function simply returns whatever was exported as `export default` in the target module.
13+
Let's have a look at a consumer choosing to lazily load some components. The `importLazy` is simply a function that returns the `default` property, this is for Babel/ES2015 interoperability. If you don't need that you can omit the `importLazy` helper. The `importLazy` function simply returns whatever was exported as `export default` in the target module.
1314

1415
```jsx
1516
<LazilyLoad modules={{
@@ -58,7 +59,7 @@ export LazilyLoadFactory(Highlight, {
5859
});
5960
```
6061

61-
Notice how the consumer of Highlight component had no idea it had a dependency that was lazily loaded? Or that if a user had todos with no code we would never need to load highlight.js?
62+
Notice how the consumer of Highlight component had no idea it had a dependency that was lazily loaded? Or that if a user had todos with no code we would never need to load highlight.js?
6263

6364

6465
## The Code

content/guides/migrating.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ contributors:
99
- johnnyreilly
1010
- jouni-kantola
1111
- frederikprijck
12+
- chrisVillanueva
1213
---
1314

1415
## `resolve.root`, `resolve.fallback`, `resolve.modulesDirectories`
@@ -72,7 +73,7 @@ The new naming conventions are easier to understand and are a good reason to upg
7273
## Chaining loaders
7374

7475
Like in webpack v1, loaders can be chained to pass results from loader to loader. Using the [rule.use](/configuration/module#rule-use)
75-
configuration option, `use` can be set to a list of loaders.
76+
configuration option, `use` can be set to a list of loaders.
7677
In webpack v1, loaders were commonly chained with `!`. This style is only supported using the legacy option `module.loaders`.
7778

7879
``` diff
@@ -331,48 +332,48 @@ These functions are now always asynchronous instead of calling their callback sy
331332
You can *no longer* configure a loader with a custom property in the `webpack.config.js`. It must be done through the `options`. The following configuration with the `ts` property is no longer valid with webpack 2:
332333

333334
```js
334-
module.exports = {
335+
module.exports = {
335336
...
336-
module: {
337-
rules: [{
337+
module: {
338+
rules: [{
338339
test: /\.tsx?$/,
339340
loader: 'ts-loader'
340341
}]
341342
},
342343
// does not work with webpack 2
343-
ts: { transpileOnly: false }
344-
}
344+
ts: { transpileOnly: false }
345+
}
345346
```
346347

347348
### What are `options`?
348349

349350
Good question. Well, strictly speaking it's 2 possible things; both ways to configure a webpack loader. Classically `options` was called `query` and was a string which could be appended to the name of the loader. Much like a query string but actually with [greater powers](https://github.com/webpack/loader-utils#parsequery):
350351

351352
```js
352-
module.exports = {
353+
module.exports = {
353354
...
354-
module: {
355-
rules: [{
355+
module: {
356+
rules: [{
356357
test: /\.tsx?$/,
357358
loader: 'ts-loader?' + JSON.stringify({ transpileOnly: false })
358359
}]
359360
}
360-
}
361+
}
361362
```
362363

363364
But it can also be a separately specified object that's supplied alongside a loader:
364365

365366
```js
366-
module.exports = {
367+
module.exports = {
367368
...
368-
module: {
369-
rules: [{
369+
module: {
370+
rules: [{
370371
test: /\.tsx?$/,
371372
loader: 'ts-loader'
372373
options: { transpileOnly: false }
373374
}]
374375
}
375-
}
376+
}
376377
```
377378

378379
## `LoaderOptionsPlugin` context
@@ -586,7 +587,7 @@ Loaders are now cacheable by default. Loaders must opt-out if they are not cache
586587
webpack 1 only support `JSON.stringify`-able options for loaders.
587588
webpack 2 now supports any JS object as loader options.
588589

589-
Using complex options comes with one restriction. You may need to have a `ident` for the option object to make it referencable by other loaders.
590+
Using complex options comes with one restriction. You may need to have a `ident` for the option object to make it referenceable by other loaders.
590591

591592
Having an `ident` on the options object means to be able to reference this options object in inline loaders. Here is an example:
592593

0 commit comments

Comments
 (0)