Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70954ff

Browse files
committed
Update Webpack docs
1 parent 805fda1 commit 70954ff

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

docs/theming/webpack.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,26 @@ This is a simple guide on how to start using webpack in Sylius apps. Webpack fin
3131
shop: '%kernel.project_dir%/public/build/shop'
3232
admin: '%kernel.project_dir%/public/build/admin'
3333
34-
**4.** Change the assets paths for admin and shop:
34+
**4.** Overwrite template files and add new assets paths for admin and shop:
3535

3636
.. code-block:: php
3737
38-
// src/Sylius/Bundle/AdminBundle/Resources/views/_scripts.html.twig
39-
38+
// templates/bundles/SyliusAdminBundle/_scripts.html.twig
4039
{{ encore_entry_script_tags('admin-entry', null, 'admin') }}
41-
// src/Sylius/Bundle/AdminBundle/Resources/views/_styles.html.twig
4240
41+
// templates/bundles/SyliusAdminBundle/_styles.html.twig
4342
{{ encore_entry_link_tags('admin-entry', null, 'admin') }}
44-
// src/Sylius/Bundle/AdminBundle/Resources/views/_logo.html.twig
4543
44+
// templates/bundles/SyliusAdminBundle/_logo.html.twig
4645
{{ asset('build/admin/images/admin-logo.svg', 'admin') }}
47-
// src/Sylius/Bundle/ShopBundle/Resources/views/_scripts.html.twig
4846
47+
// templates/bundles/SyliusShopBundle/_scripts.html.twig
4948
{{ encore_entry_script_tags('shop-entry', null, 'shop') }}
50-
// src/Sylius/Bundle/ShopBundle/Resources/views/_styles.html.twig
5149
50+
// templates/bundles/SyliusShopBundle/_styles.html.twig
5251
{{ encore_entry_link_tags('shop-entry', null, 'shop') }}
53-
// src/Sylius/Bundle/ShopBundle/Resources/views/_header.html.twig
5452
53+
// templates/bundles/SyliusShopBundle/_header.html.twig
5554
{{ asset('build/shop/images/logo.png', 'shop') }}
5655
5756
.. warning::

0 commit comments

Comments
 (0)