8000 web/ -> public/ after merge · symfony/symfony-docs@049742d · GitHub
[go: up one dir, main page]

Skip to content

Commit 049742d

Browse files
committed
web/ -> public/ after merge
1 parent 09af3fe commit 049742d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

frontend/encore/copy-files.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ files into your final output directory.
3636
3737
Encore
3838
// ...
39-
.setOutputPath('web/build/')
39+
.setOutputPath('public/build/')
4040
4141
+ .copyFiles({
4242
+ from: './assets/images',
@@ -48,16 +48,16 @@ files into your final output directory.
4848
+ //pattern: /\.(png|jpg|jpeg)$/
4949
+ })
5050
51-
This will copy all files from ``assets/images`` into ``web/build`` (the output
51+
This will copy all files from ``assets/images`` into ``public/build`` (the output
5252
path). If you have :doc:`versioning enabled <versioning>`, the copied files will
5353
include a hash based on their content.
5454

5555
To render inside Twig, use the ``asset()`` function:
5656

57-
{# assets/images/logo.png was copied to web/build/logo.png #}
57+
{# assets/images/logo.png was copied to public/build/logo.png #}
5858
<img src="{{ asset('build/logo.png') }}"
5959

60-
{# assets/images/subdir/logo.png was copied to web/build/subdir/logo.png #}
60+
{# assets/images/subdir/logo.png was copied to public/build/subdir/logo.png #}
6161
<img src="{{ asset('build/subdir/logo.png') }}"
6262

6363
Make sure you've enabled the :ref:`json_manifest_path <load-manifest-files>` option,

frontend/encore/simple-example.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ To build the assets, run:
7676

7777
Congrats! You now have three new files:
7878

79-
* ``web/build/app.js`` (holds all the JavaScript for your "app" entry)
80-
* ``web/build/app.css`` (holds all the CSS for your "app" entry)
81-
* ``web/build/runtime.js`` (a file that helps Webpack do its job)
79+
* ``public/build/app.js`` (holds all the JavaScript for your "app" entry)
80+
* ``public/build/app.css`` (holds all the CSS for your "app" entry)
81+
* ``public/build/runtime.js`` (a file that helps Webpack do its job)
8282

8383
Next, include these in your base layout file. Two Twig helpers from WebpackEncoreBundle
8484
can do most of the work for you:

0 commit comments

Comments
 (0)
0