You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend/encore/dev-server.rst
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -29,34 +29,34 @@ This will start a server at ``https://localhost:9000``.
29
29
Hot Module Replacement HMR
30
30
--------------------------
31
31
32
-
Encore *does* support `HMR`_, but only in some areas. To activate it, pass the ``--hot``
32
+
Encore *does* support `HMR`_ for :doc:`Vue.js </frontend/encore/vuejs>`, but
33
+
does *not* work for styles anywhere at this time. To activate it, pass the ``--hot``
33
34
option:
34
35
35
36
.. code-block:: terminal
36
37
37
38
$ ./node_modules/.bin/encore dev-server --hot
38
39
39
-
HMR currently works for :doc:`Vue.js </frontend/encore/vuejs>`, but does *not* work
40
-
for styles anywhere at this time.
40
+
If you experience issues related to CORS (Cross Origin Resource Sharing), add
41
+
the ``--disable-host-check`` and ``--port`` options to the ``dev-server``
42
+
command in the ``package.json`` file:
41
43
42
-
For Hot Module Replacement, CORS-errors can appear (Cross Origin Resource Sharing). To handle this, add the --disable-host-check and --port options to your command:
44
+
.. code-block:: diff
43
45
44
-
.. code-block:: terminal
45
-
46
-
$ yarn encore dev-server --port 8080 --disable-host-check --hot
47
-
48
-
Or, alternatively, you can add the options to your package.json
0 commit comments