From fed8b087acf1785cc9dd14b5cf9afd13725d01d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 5 Feb 2021 17:17:59 +0100 Subject: [PATCH 1/3] Improve onboarding when using Encore --- symfony/twig-bundle/3.3/templates/base.html.twig | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/symfony/twig-bundle/3.3/templates/base.html.twig b/symfony/twig-bundle/3.3/templates/base.html.twig index 5fb4cd44..cf825f50 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 tags 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 %} From f67b143e21a565c0984c087ad2b23dc087426895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 5 Feb 2021 17:30:47 +0100 Subject: [PATCH 2/3] add missing file --- symfony/webpack-encore-bundle/1.9/post-install.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 symfony/webpack-encore-bundle/1.9/post-install.txt 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..03f763a2 --- /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 dev-server From d5b6c763831fe5de5167336b0bd9dbcea080be0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 5 Feb 2021 17:31:54 +0100 Subject: [PATCH 3/3] wording --- symfony/twig-bundle/3.3/templates/base.html.twig | 2 +- symfony/webpack-encore-bundle/1.9/post-install.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/symfony/twig-bundle/3.3/templates/base.html.twig b/symfony/twig-bundle/3.3/templates/base.html.twig index cf825f50..16d7273b 100644 --- a/symfony/twig-bundle/3.3/templates/base.html.twig +++ b/symfony/twig-bundle/3.3/templates/base.html.twig @@ -4,7 +4,7 @@ {% block title %}Welcome!{% endblock %} {# Run `composer require symfony/webpack-encore-bundle` - and uncomment the following tags to start using Symfony UX #} + and uncomment the following Encore helpers to start using Symfony UX #} {% block stylesheets %} {#{{ encore_entry_link_tags('app') }}#} {% endblock %} diff --git a/symfony/webpack-encore-bundle/1.9/post-install.txt b/symfony/webpack-encore-bundle/1.9/post-install.txt index 03f763a2..5a207557 100644 --- a/symfony/webpack-encore-bundle/1.9/post-install.txt +++ b/symfony/webpack-encore-bundle/1.9/post-install.txt @@ -6,4 +6,4 @@ * Uncomment the Twig helpers in templates/base.html.twig - * Start the development server: yarn dev-server + * Start the development server: yarn encore dev-server