Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit049742d

Browse files
committed
web/ -> public/ after merge
1 parent09af3fe commit049742d

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 toweb/build/logo.png #}
57+
{# assets/images/logo.png was copied topublic/build/logo.png #}
5858
<img src="{{ asset('build/logo.png') }}"
5959

60-
{# assets/images/subdir/logo.png was copied toweb/build/subdir/logo.png #}
60+
{# assets/images/subdir/logo.png was copied topublic/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)

[8]ページ先頭

©2009-2025 Movatter.jp