Skip to content

Documentation: Confused about formulation regarding encore_entry_* #1169

Closed
symfony/symfony-docs
#17596
@bc-0dp

Description

@bc-0dp

In the documentation for installing webpack-encore specifically for a non-symfony project. This sentence throws me off:

If you're not using Symfony, you can ignore the entrypoints.json file and point to the final, built file directly. entrypoints.json is only required for some optional features.

This is due to the error I am receiving Unknown "encore_entry_link_tags" function.
Looking around the net for answers I see a lot of projects omitting encore_entry_link_tags and encore_entry_script_tags
and instead uses native implementations like,

<link rel="stylesheet" href="{{ asset('build/app.css') }}"> and <script src="{{ asset('build/app.js') }}"></script>

So I am wondering, if what this message in the documentation is trying to relay is more in line with:

If you are not using Symfony you SHOULD ignore the encore_ specific twig tags and entrypoints.json since they are only supported in Symfony applications. Instead use native implementations and point to the final built files directly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions