Skip to content

Commit 9657ac2

Browse files
committed
Rewords
1 parent 63e99d8 commit 9657ac2

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

frontend.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ Guides
7373
* :doc:`Passing Information from Twig to JavaScript </frontend/encore/server-data>`
7474
* :doc:`webpack-dev-server and Hot Module Replacement (HMR) </frontend/encore/dev-server>`
7575
* :doc:`Adding custom loaders & plugins </frontend/encore/custom-loaders-plugins>`
76-
* :doc:`Configuring Watching Options and Polling </frontend/encore/watch-options>`
7776
* :doc:`Advanced Webpack Configuration </frontend/encore/advanced-config>`
7877

7978
Issues & Questions

frontend/encore/advanced-config.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ But be careful not to accidentally override any config from Encore:
3838
// BAD - this replaces any extensions added by Encore
3939
// config.resolve.extensions = ['json'];
4040
41+
Configuring Watching Options and Polling
42+
----------------------------------------
43+
44+
Encore provides the method ``configureWatchOptions()`` to configure
45+
`Watching Options`_ when running ``encore dev --watch`` or ``encore dev-server``:
46+
47+
.. code-block:: javascript
48+
49+
Encore.configureWatchOptions(function(watchOptions) {
50+
// enable polling and check for changes every 250ms
51+
// polling is useful when running Encore inside a Virtual Machine
52+
watchOptions.poll = 250;
53+
});
54+
4155
Defining Multiple Webpack Configurations
4256
----------------------------------------
4357

@@ -207,3 +221,4 @@ The following loaders are configurable with ``configureLoaderRule()``:
207221
.. _`configuration options`: https://webpack.js.org/configuration/
208222
.. _`array of configurations`: https://github.com/webpack/docs/wiki/configuration#multiple-configurations
209223
.. _`Karma`: https://karma-runner.github.io
224+
.. _`Watching Options`: https://webpack.js.org/configuration/watch/#watchoptions

frontend/encore/watch-options.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)