Skip to content

Commit 0c93d1c

Browse files
committed
minor symfony#13433 Encore: add documentation for Encore.configureDevServerOptions() (Kocal)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes symfony#13433). Discussion ---------- Encore: add documentation for Encore.configureDevServerOptions() Hi 👋, This PR add documention for the new method `Encore.configureDevServerOptions()` implemented in symfony/webpack-encore#693. Thanks :) Commits ------- 869727d Encore: add documentation for Encore.configureDevServerOptions()
2 parents 95f5cc1 + 869727d commit 0c93d1c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

frontend/encore/dev-server.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,25 @@ by the normal `webpack-dev-server`_. For example:
2626
2727
This will start a server at ``https://localhost:9000``.
2828

29+
If you prefer, you can use ``Encore.configureDevServerOptions()`` to configure `webpack-dev-server`_ in your ``webpack.config.js`` file.
30+
For example:
31+
32+
.. code-block:: javascript
33+
34+
// webpack.config.js
35+
// ...
36+
37+
Encore
38+
// ...
39+
40+
.configureDevServerOptions(options => {
41+
options.https = {
42+
key: '/path/to/server.key',
43+
cert: '/path/to/server.crt',
44+
}
45+
})
46+
;
47+
2948
Hot Module Replacement HMR
3049
--------------------------
3150

0 commit comments

Comments
 (0)