Skip to content

preact watch build hangs with CLI v3.0.0-rc.10 #11

Description

@SolarLiner

This is due to the ImageminPlugin, which I think waits for images to be available in the build directory to optimize them. However with the watch command, no build dir is created, which makes the plugin indefinitely wait for files that will never arrive.

The solution is to only push the plugin into the webpack config in build mode.

A small, related detail with the plugin is that it's being hardcoded to looking inside build which may not be what the user set (depends on the --dest option).

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