Skip to content

Output all immutable files into common directory #1364

@teodragovic

Description

@teodragovic

Do you want to request a feature or report a bug?

Feature

What is the current behaviour?

All webpack-generated files are outputted into build directory alongside files from static, index.html and manifest.json that are copied verbatim.

If this is a feature request, what is motivation or use case for changing the behaviour?

CRA has heuristic that all hash-based, immutable files are placed in static/ directory. Generated files that should not be cached like sw are NOT part of this directory. This makes writing server caching rules easier.

IMO it would be great if the same or similar setup could be provided by preact-cli.

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