Skip to content

Commit 324b406

Browse files
committed
minor #12449 [Encore] Replace "Encore.setPublicPrefix" by "Encore.setPublicPath" (Lyrkan)
This PR was merged into the 3.4 branch. Discussion ---------- [Encore] Replace "Encore.setPublicPrefix" by "Encore.setPublicPath" Fixes a small issue in the FAQ page: `Encore.setPublicPrefix()` does not exist, it should be [`Encore.setPublicPath()`](https://github.com/symfony/webpack-encore/blob/314be3277984c8493a5daaae792c05279a9c436b/index.js#L39-L69) instead (the example that follows uses it correctly). I also removed a "*just*" in the same sentence since, if I recall correctly, it should now be avoided in the docs. Commits ------- 3542527 [Encore] Replace "Encore.setPublicPrefix" by "Encore.setPublicPath"
2 parents aed9091 + 3542527 commit 324b406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/encore/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ My App Lives under a Subdirectory
5959
---------------------------------
6060

6161
If your app does not live at the root of your web server (i.e. it lives under a subdirectory,
62-
like ``/myAppSubdir``), you just need to configure that when calling ``Encore.setPublicPrefix()``:
62+
like ``/myAppSubdir``), you will need to configure that when calling ``Encore.setPublicPath()``:
6363

6464
.. code-block:: diff
6565

0 commit comments

Comments
 (0)