Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commite62eea7

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 exampleI'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 parentsec0e8b2 +06f5c23 commite62eea7

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)

[8]ページ先頭

©2009-2025 Movatter.jp