File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
5252path). If you have :doc: `versioning enabled <versioning >`, the copied files will
5353include a hash based on their content.
5454
5555To 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
6363Make sure you've enabled the :ref: `json_manifest_path <load-manifest-files >` option,
Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ To build the assets, run:
7676
7777Congrats! 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
8383Next, include these in your base layout file. Two Twig helpers from WebpackEncoreBundle
8484can do most of the work for you:
You can’t perform that action at this time.
0 commit comments