Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e62eea7

Browse filesBrowse 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
Copy full SHA for e62eea7

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎frontend/encore/advanced-config.rst

Copy file name to clipboardExpand all lines: frontend/encore/advanced-config.rst
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.