File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 73
73
* :doc: `Passing Information from Twig to JavaScript </frontend/encore/server-data >`
74
74
* :doc: `webpack-dev-server and Hot Module Replacement (HMR) </frontend/encore/dev-server >`
75
75
* :doc: `Adding custom loaders & plugins </frontend/encore/custom-loaders-plugins >`
76
- * :doc: `Configuring Watching Options and Polling </frontend/encore/watch-options >`
77
76
* :doc: `Advanced Webpack Configuration </frontend/encore/advanced-config >`
78
77
79
78
Issues & Questions
Original file line number Diff line number Diff line change @@ -38,6 +38,20 @@ But be careful not to accidentally override any config from Encore:
38
38
// BAD - this replaces any extensions added by Encore
39
39
// config.resolve.extensions = ['json'];
40
40
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
+
41
55
Defining Multiple Webpack Configurations
42
56
----------------------------------------
43
57
@@ -207,3 +221,4 @@ The following loaders are configurable with ``configureLoaderRule()``:
207
221
.. _`configuration options` : https://webpack.js.org/configuration/
208
222
.. _`array of configurations` : https://github.com/webpack/docs/wiki/configuration#multiple-configurations
209
223
.. _`Karma` : https://karma-runner.github.io
224
+ .. _`Watching Options` : https://webpack.js.org/configuration/watch/#watchoptions
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments