Skip to content

Commit df8f028

Browse files
Add require('webpack') to prevent undefined var
1 parent 818928c commit df8f028

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/encore/custom-loaders-plugins.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ to use the `IgnorePlugin`_ (see `moment/moment#2373`_):
5151
.. code-block:: diff
5252
5353
// webpack.config.js
54+
+ var webpack = require('webpack');
55+
5456
Encore
5557
// ...
5658

0 commit comments

Comments
 (0)