8000 Minor fix · symfony/symfony-docs@6f04086 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f04086

Browse files
committed
Minor fix
1 parent e62eea7 commit 6f04086

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/encore/advanced-config.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Quite simply, Encore generates the Webpack configuration that's used in your
88
For example, suppose you need to set `Webpack's watchOptions`_ setting. To do that,
99
modify the config after fetching it from Encore:
1010

11+
.. TODO update the following config example when https://github.com/symfony/webpack-encore/pull/486 is merged and configureWatchOptions() is introduced
12+
1113
.. code-block:: javascript
1214
1315
// webpack.config.js
@@ -18,6 +20,9 @@ modify the config after fetching it from Encore:
1820
1921
// fetch the config, then modify it!
2022
var config = Encore.getWebpackConfig();
23+
// if you run 'encore dev --watch'
24+
config.watchOptions = { poll: true, ignored: /node_modules/ };
25+
// if you run 'encore dev-server'
2126
config.devServer.watchOptions = { poll: true, ignored: /node_modules/ };
2227
2328
// other examples: add an alias or extension

0 commit comments

Comments
 (0)
0