diff --git a/README.md b/README.md index 503be84c..80e591c9 100644 --- a/README.md +++ b/README.md @@ -101,46 +101,27 @@ and `build/entry1.js`, then `encore_entry_script_tags()` is equivalent to: ``` -If you want more control, you can use the `encore_entry_js_files()` and -`encore_entry_css_files()` methods to get the list of files needed, then -loop and create the `script` and `link` tags manually. - -## Rendering Multiple Times in a Request (e.g. to Generate a PDF) - -When you render your script or link tags, the bundle is smart enough -not to repeat the same JavaScript or CSS file within the same request. -This prevents you from having duplicate `` or ` diff --git a/tests/fixtures/template_disable_tracking.twig b/tests/fixtures/template_disable_tracking.twig new file mode 100644 index 00000000..116e29ed --- /dev/null +++ b/tests/fixtures/template_disable_tracking.twig @@ -0,0 +1,6 @@ +{% do encore_disable_file_tracking() %} +{{ encore_entry_script_tags('my_entry') }} +{{ encore_entry_link_tags('my_entry') }} +{{ encore_entry_script_tags('other_entry') }} +{{ encore_entry_link_tags('other_entry') }} +{% do encore_enable_file_tracking() %}