diff --git a/frontend/encore/dev-server.rst b/frontend/encore/dev-server.rst index 5da7d778cd7..9af0b5d69ad 100644 --- a/frontend/encore/dev-server.rst +++ b/frontend/encore/dev-server.rst @@ -17,6 +17,24 @@ Twig shortcuts (or are :ref:`processing your assets through entrypoints.json ` locally with HTTPS, +you'll need to also tell the dev-server to use HTTPS. To do this, you can reuse the Symfony web +server SSL certificate: + +.. code-block:: terminal + + # Unix-based systems + $ yarn dev-server --https --pfx=$HOME/.symfony/certs/default.p12 + + # Windows + $ encore dev-server --https --pfx=%UserProfile%\.symfony\certs\default.p12 + +dev-server Options +------------------ + The ``dev-server`` command supports all the options defined by `webpack-dev-server`_. You can set these options via command line options: