Skip to content

Commit 06f5c23

Browse files
authored
Fix encore advanced config watchOptions example
1 parent 057f279 commit 06f5c23

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)