Skip to content

[AssetMapper] Add spacing to rendered output for importmap() #52451

Closed
@tacman

Description

@tacman

Description

The rendered HTML is hard to read in a browse because the script tag is after the long links. A linefeed or two would make debugging easier.

<link rel="stylesheet" href="[/assets/styles/app-713d9828d7058036a44786836080554c.css](https://member.wip/assets/styles/app-713d9828d7058036a44786836080554c.css)">
<link rel="stylesheet" href="[/assets/vendor/bootstrap/dist/css/bootstrap.min-6f3e593392adf34505358c68326dee3d.css](https://member.wip/assets/vendor/bootstrap/dist/css/bootstrap.min-6f3e593392adf34505358c68326dee3d.css)">
<link rel="stylesheet" href="[/assets/vendor/@fortawesome/fontawesome-free/css/fontawesome.min-f7b34e923fc12b0125a541e4c9d2f7f3.css](https://member.wip/assets/vendor/@fortawesome/fontawesome-free/css/fontawesome.min-f7b34e923fc12b0125a541e4c9d2f7f3.css)"><script type="importmap">
{
    "imports": {
        "app": "/assets/app-de9a9064d6f84c31e14cc9302e3be316.js",
        "/assets/bootstrap.js": "/assets/bootstrap-c423b8bbc1f9cae218c105ca8ca9f767.js",
        "@symfony/stimulus-bundle": "/assets/@symfony/stimulus-bundle/loader-e1ee9ace0562f2e6a52301e4ccc8627d.js",
        "@hotwire

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions