You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature symfony#11075 Encore (advanced): add documentation for configureLoaderRule() method (Kocal, Lyrkan, weaverryan)
This PR was merged into the 3.4 branch.
Discussion
----------
Encore (advanced): add documentation for `configureLoaderRule()` method
Hey,
This PR add a new entry in the advanced configuration of Webpack Encore, which explains how to use the new method `configureLoaderRule()`.
Ref: symfony/webpack-encore#509
Commits
-------
e3d43b9 minor tweak
71fd3b7 Apply suggestions from code review
c02322c Encore (advanced): add documentation for `configureLoaderRule()` method
Copy file name to clipboardExpand all lines: frontend/encore/advanced-config.rst
+41Lines changed: 41 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -170,6 +170,47 @@ normally use from the command-line interface:
170
170
keepPublicPath:true,
171
171
});
172
172
173
+
Having the full control on Loaders Rules
174
+
----------------------------------------
175
+
176
+
The method ``configureLoaderRule()`` provides a clean way to configure Webpack loaders rules (``module.rules``, see `Configuration <https://webpack.js.org/concepts/loaders/#configuration>`_).
177
+
178
+
This is a low-level method. All your modifications will be applied just before pushing the loaders rules to Webpack.
179
+
It means that you can override the default configuration provided by Encore, which may break things. Be careful when using it.
180
+
181
+
One use might be to configure the ``eslint-loader`` to lint Vue files too.
0 commit comments