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

Commit6f04086

Browse files
committed
Minor fix
1 parente62eea7 commit6f04086

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)

[8]ページ先頭

©2009-2025 Movatter.jp