8000 Encore: add documentation for Encore.configureDevServerOptions() · symfony/symfony-docs@869727d · GitHub
[go: up one dir, main page]

Skip to content

Commit 869727d

Browse files
Kocaljaviereguiluz
authored andcommitted
Encore: add documentation for Encore.configureDevServerOptions()
See symfony/webpack-encore#693
1 parent 95f5cc1 commit 869727d

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)
0