Unlock this challenge:
When you run Encore, it builds the final files into a public/build/ directory. Why do we use:
public/build/
{{ encore_entry_script_tags('app') }}
instead of the simpler:
<script src="/build/app.js"></script>
Both will work, some people just like the simpler encore_entry_script_tags().
encore_entry_script_tags()
This function will take care of including any other generated files.
Encore does not allows you to access the final app.js file directly.
app.js
This function compiles your assets right before creating the script tags.