Skip to content

Coalesce multiple blocks with the same definition? #42

@kylepaulsen

Description

@kylepaulsen

#39 addresses the issue of having multiple blocks with the same build target, however the output html has multiple script tags that point to the same built script. Is there a reason for this? It seems like it should only create one script to replace the final build block parsed with the same build target, and all the other matching build blocks just get removed.

Also, instead of adding an index to the end of duplicate build targets, shouldn't node-useref just concat more script paths into the first "section" that is created for the build target?

If it's ok, I could submit a PR for this.

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