Skip to content

Commit 67b2f20

Browse files
spencerbywmichael-ciniawsky
authored andcommitted
docs(readme): fix various typos (#782)
1 parent 43179a8 commit 67b2f20

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050

5151
### `toString`
5252

53-
You can also use the css-loader results directly as string, such as in Angular's component style.
53+
You can also use the css-loader results directly as a string, such as in Angular's component style.
5454

5555
**webpack.config.js**
5656
```js
@@ -137,7 +137,7 @@ The syntax `:local(.className)` can be used to declare `className` in the local
137137

138138
With `:local` (without brackets) local mode can be switched on for this selector. `:global(.className)` can be used to declare an explicit global selector. With `:global` (without brackets) global mode can be switched on for this selector.
139139

140-
The loader replaces local selectors with unique identifiers. The choosen unique identifiers are exported by the module.
140+
The loader replaces local selectors with unique identifiers. The chosen unique identifiers are exported by the module.
141141

142142
```css
143143
:local(.className) { background: red; }
@@ -162,7 +162,7 @@ exports.locals = {
162162
}
163163
```
164164

165-
CamelCase is recommended for local selectors. They are easier to use in the within the imported JS module.
165+
CamelCase is recommended for local selectors. They are easier to use within the imported JS module.
166166

167167
`url()` URLs in block scoped (`:local .abc`) rules behave like requests in modules.
168168

@@ -280,9 +280,9 @@ You can also specify the absolute path to your custom `getLocalIdent` function t
280280

281281
To include source maps set the `sourceMap` option.
282282

283-
I. e. the extract-text-webpack-plugin can handle them.
283+
I.e. the extract-text-webpack-plugin can handle them.
284284

285-
They are not enabled by default because they expose a runtime overhead and increase in bundle size (JS source maps do not). In addition to that relative paths are buggy and you need to use an absolute public path which include the server URL.
285+
They are not enabled by default because they expose a runtime overhead and increase in bundle size (JS source maps do not). In addition to that relative paths are buggy and you need to use an absolute public path which includes the server URL.
286286

287287
**webpack.config.js**
288288
```js
@@ -327,7 +327,7 @@ import { className } from 'file.css';
327327

328328
### `importLoaders`
329329

330-
The query parameter `importLoaders` allows to configure how many loaders before `css-loader` should be applied to `@import`ed resources.
330+
The query parameter `importLoaders` allows you to configure how many loaders before `css-loader` should be applied to `@import`ed resources.
331331

332332
**webpack.config.js**
333333
```js
@@ -347,7 +347,7 @@ The query parameter `importLoaders` allows to configure how many loaders before
347347
}
348348
```
349349

350-
This may change in the future, when the module system (i. e. webpack) supports loader matching by origin.
350+
This may change in the future when the module system (i. e. webpack) supports loader matching by origin.
351351

352352
<h2 align="center">Examples</h2>
353353

@@ -378,7 +378,7 @@ module.exports = {
378378

379379
### Extract
380380

381-
For production builds it's recommended to extract the CSS from your bundle being able to use parallel loading of CSS/JS resources later on.
381+
For production builds it's recommended to extract the CSS from your bundle being able to use parallel loading of CSS/JS resources later on.
382382
This can be achieved by using the [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) to extract the CSS when running in production mode.
383383

384384
<h2 align="center">Maintainers</h2>

0 commit comments

Comments
 (0)