Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature/update docs #1474

Merged
merged 2 commits into from
Jun 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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