8000 Minor reword · symfony/symfony-docs@054add5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 054add5

Browse files
committed
Minor reword
1 parent 0c93d1c commit 054add5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

frontend/encore/dev-server.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,15 @@ Twig shortcuts (or are :ref:`processing your assets through entrypoints.json <lo
1717
in some other way), you're done: the paths in your templates will automatically point
1818
to the dev server.
1919

20-
You can also pass options to the ``dev-server`` command: any options that are supported
21-
by the normal `webpack-dev-server`_. For example:
20+
The ``dev-server`` command supports all the options defined by `webpack-dev-server`_.
21+
You can set these options via command line options:
2222

2323
.. code-block:: terminal
2424
2525
$ yarn encore dev-server --https --port 9000
2626
27-
This will start a server at ``https://localhost:9000``.
28-
29-
If you prefer, you can use ``Encore.configureDevServerOptions()`` to configure `webpack-dev-server`_ in your ``webpack.config.js`` file.
30-
For example:
27+
You can also set these options using the ``Encore.configureDevServerOptions()``
28+
method in your ``webpack.config.js`` file:
3129

3230
.. code-block:: javascript
3331
@@ -45,6 +43,10 @@ For example:
4543
})
4644
;
4745
46+
.. versionadded:: 0.28.4
47+
48+
The ``Encore.configureDevServerOptions()`` method was introduced in Encore 0.28.4.
49+
4850
Hot Module Replacement HMR
4951
--------------------------
5052

0 commit comments

Comments
 (0)
0