From 9f31eb7cf3fa39a1605887f163a79323e02fc3f3 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 29 Sep 2022 13:17:46 +0200 Subject: [PATCH] Improve the diff highlighting for custom webpack plugins Highlighting only part of the new method call does not make sense. --- frontend/encore/custom-loaders-plugins.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/encore/custom-loaders-plugins.rst b/frontend/encore/custom-loaders-plugins.rst index 6e0957a085c..92699b0857a 100644 --- a/frontend/encore/custom-loaders-plugins.rst +++ b/frontend/encore/custom-loaders-plugins.rst @@ -57,9 +57,9 @@ to use the `IgnorePlugin`_ (see `moment/moment#2373`_): // ... + .addPlugin(new webpack.IgnorePlugin({ - resourceRegExp: /^\.\/locale$/, - contextRegExp: /moment$/, - })) + + resourceRegExp: /^\.\/locale$/, + + contextRegExp: /moment$/, + + })) ; .. _`handlebars-loader`: https://github.com/pcardune/handlebars-loader