From 4c34e056918e790ccc39804afe892524013df76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=AF=E8=80=83=E5=90=89=E6=81=A9?= Date: Thu, 28 Oct 2021 17:12:04 +0800 Subject: [PATCH] make following jquery example works in this section: https://symfony.com/doc/5.4/frontend/encore/simple-example.html#requiring-javascript-modules It's using jquery as example, so we should tell user that they have to enable autoProvidejQuery option to use jquery in following tutorial. --- frontend/encore/simple-example.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/encore/simple-example.rst b/frontend/encore/simple-example.rst index 3cd89e092bf..cbec25be78c 100644 --- a/frontend/encore/simple-example.rst +++ b/frontend/encore/simple-example.rst @@ -43,7 +43,8 @@ of your project. It already holds the basic config you need: .addEntry('app', './assets/app.js') - // ... + // Don't forget to uncomment If you want use following JQuery example code + .autoProvidejQuery() ; // ...