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
minor #11398 [Frontend] Add doc Watch Options configuration (Kocal)
This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes#11398).
Discussion
----------
[Frontend] Add doc Watch Options configuration
Hi,
This PR add a new page that shows how to easily configure watching options with Encore:
```js
Encore.configureWatchOptions(watchOptions => {
watchOptions.poll = 250;
});
```
I've also reworked the Advanced Config page to remove the old way to configure watch options.
Thanks!
Commits
-------
da27286 [Frontend] Add doc Watch Options configuration
Copy file name to clipboardExpand all lines: frontend/encore/advanced-config.rst
+4-12Lines changed: 4 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,8 @@ Summarized, Encore generates the Webpack configuration that's used in your
5
5
``webpack.config.js`` file. Encore doesn't support adding all of Webpack's
6
6
`configuration options`_, because many can be added on your own.
7
7
8
-
For example, suppose you need to set `Webpack's watchOptions`_ setting. To do that,
9
-
modify the config after fetching it from Encore:
10
-
11
-
.. TODO update the following config example when https://github.com/symfony/webpack-encore/pull/486 is merged and configureWatchOptions() is introduced
8
+
For example, suppose you need to resolve automatically a new extension.
9
+
To do that, modify the config after fetching it from Encore:
12
10
13
11
.. code-block:: javascript
14
12
@@ -20,14 +18,9 @@ modify the config after fetching it from Encore:
0 commit comments