diff --git a/symfony/twig-bundle/3.3/templates/base.html.twig b/symfony/twig-bundle/3.3/templates/base.html.twig index 5fb4cd44..16d7273b 100644 --- a/symfony/twig-bundle/3.3/templates/base.html.twig +++ b/symfony/twig-bundle/3.3/templates/base.html.twig @@ -3,9 +3,15 @@ {% block title %}Welcome!{% endblock %} - {% block stylesheets %}{% endblock %} + {# Run `composer require symfony/webpack-encore-bundle` + and uncomment the following Encore helpers to start using Symfony UX #} + {% block stylesheets %} + {#{{ encore_entry_link_tags('app') }}#} + {% endblock %} - {% block javascripts %}{% endblock %} + {% block javascripts %} + {#{{ encore_entry_script_tags('app') }}#} + {% endblock %} {% block body %}{% endblock %} diff --git a/symfony/webpack-encore-bundle/1.9/post-install.txt b/symfony/webpack-encore-bundle/1.9/post-install.txt new file mode 100644 index 00000000..5a207557 --- /dev/null +++ b/symfony/webpack-encore-bundle/1.9/post-install.txt @@ -0,0 +1,9 @@ + + Finish Encore Installation + + + * Install Yarn and run yarn install + + * Uncomment the Twig helpers in templates/base.html.twig + + * Start the development server: yarn encore dev-server