Skip to content

Optimize build #2840

Open
Open
@glittle

Description

@glittle

What problem does this feature solve?

Between two builds, the entire set of files is recreated, even when nothing was changed. This is very inefficient and poorly affects end users.

As it is now, when 1 character is modified in a simple JS file, the user's browser must re-download the entire website rather than just one of the files from the site. This might be acceptable for a site that is mostly static. However, for a site that is updated frequently, this slows user experience significantly.

The build process should compare its current build with the previous build and only output/replace the old file if there were changes.

This might imply that links must be created in a second pass (recursively?) so that previously generated (unchanged) files can be reused.

What does the proposed API look like?

I'd be happy to see a configuration setting that allowed optimization to be done as it is now or optimized for minimal reloads (as requested above).

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