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 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
7978Issues & 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:
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments