Skip to content

Commit

Permalink
docs: fix typos (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan committed Jun 28, 2020
1 parent 85accfa commit 6e17a0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/template-option.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Please note that this loader does not support the full ejs syntax as it is based
}
```

Be aware, using `.html` as your template extention may unexpectedly trigger another loader.
Be aware, using `.html` as your template extension may unexpectedly trigger another loader.

## 2) Setting a loader directly for the template

Expand All @@ -43,12 +43,12 @@ new HtmlWebpackPlugin({
})
```

## 3) Setting a loader using the `module.loaders` syntax
## 3) Setting a loader using the `module.rules` syntax

```js
{
module: {
loaders: [
rules: [
{
test: /\.hbs$/,
loader: 'handlebars-loader'
Expand All @@ -69,7 +69,7 @@ This will **cause html minification** and it will also **disable the ejs/lodash
```js
{
module: {
loaders: [
rules: [
{
test: /\.html$/,
loader: 'html-loader'
Expand Down

0 comments on commit 6e17a0c

Please sign in to comment.