10000 minor #10923 Fix encore advanced config watchOptions example (eXtreme) · symfony/symfony-docs@e62eea7 · GitHub
[go: up one dir, main page]

Skip to content

Commit e62eea7

Browse files
committed
minor #10923 Fix encore advanced config watchOptions example (eXtreme)
This PR was merged into the 3.4 branch. Discussion ---------- Fix encore advanced config watchOptions example I've been struggling with this for some time and couldn't get `watchOptions` to work. After a long investigation I added `devServer` to the config and it started working. So I guess this is the correct example of adding watchOptions to the config. Commits ------- 06f5c23 Fix encore advanced config watchOptions example
2 parents ec0e8b2 + 06f5c23 commit e62eea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/encore/advanced-config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ modify the config after fetching it from Encore:
1818
1919
// fetch the config, then modify it!
2020
var config = Encore.getWebpackConfig();
21-
config.watchOptions = { poll: true, ignored: /node_modules/ };
21+
config.devServer.watchOptions = { poll: true, ignored: /node_modules/ };
2222
2323
// other examples: add an alias or extension
2424
// config.resolve.alias.local = path.resolve(__dirname, './resources/src');

0 commit comments

Comments
 (0)
0