From a18f80907b5ad12cd92083fbd2dd3c244ad51abc Mon Sep 17 00:00:00 2001 From: Ahmed Elaguab Date: Sun, 30 Jun 2019 14:59:37 +0200 Subject: [PATCH] Fix migration.md Fix migration.md by adding `module.rules` rather than `module.loaders` and `pug-loader` rather than just `pug`. --- migration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/migration.md b/migration.md index d7b19082..1b04773f 100644 --- a/migration.md +++ b/migration.md @@ -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$/, @@ -109,7 +109,7 @@ module.exports = { // ... plugins: [ new HtmlWebpackPlugin({ - template: 'pug!template.pug' + template: 'pug-loader!template.pug' }) ] }; @@ -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: [