Skip to content

Commit

Permalink
Fix migration.md
Browse files Browse the repository at this point in the history
Fix migration.md by adding `module.rules` rather than `module.loaders` and `pug-loader` rather than just `pug`.
  • Loading branch information
AhmedElaguab authored and jantimon committed Jul 7, 2019
1 parent a2a259a commit a18f809
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions migration.md
Expand Up @@ -82,7 +82,7 @@ For the above example you would have to configure a [html](https://github.com/we

```js
module: {
loaders: [
rules: [
{test: /\.png$/, loader: "file-loader"},
{
test: /\.html$/,
Expand All @@ -109,7 +109,7 @@ module.exports = {
// ...
plugins: [
new HtmlWebpackPlugin({
template: 'pug!template.pug'
template: 'pug-loader!template.pug'
})
]
};
Expand All @@ -121,8 +121,8 @@ or by configuring webpack to handle all `.pug` files:
module.exports = {
// ...
module: {
loaders: [
{ test: /\.pug$/, loader: 'pug' }
rules: [
{ test: /\.pug$/, loader: 'pug-loader' }
]
},
plugins: [
Expand Down

0 comments on commit a18f809

Please sign in to comment.