Skip to content

Commit

Permalink
Update webpack.rst
Browse files Browse the repository at this point in the history
Change overwrite instructions for logo in SyliusShopBundle
  • Loading branch information
pocky committed May 11, 2020
1 parent e2a1c70 commit 401d0e5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/theming/webpack.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ This is a simple guide on how to start using webpack in Sylius apps. Webpack fin
// templates/bundles/SyliusShopBundle/_styles.html.twig
{{ encore_entry_link_tags('shop-entry', null, 'shop') }}
// templates/bundles/SyliusShopBundle/_header.html.twig
{{ asset('build/shop/images/logo.png', 'shop') }}
// templates/bundles/SyliusShopBundle/Layout/Header/_header.html.twig
<div class="column">
<a href="{{ path('sylius_shop_homepage') }}">
<img src="{{ asset('assets/shop/img/logo.png') }}" alt="Sylius logo" class="ui small image" />
</a>
</div>
.. warning::

Expand Down

0 comments on commit 401d0e5

Please sign in to comment.