Skip to content

onAfterDone With multiple child configs #31

@bcis-kassel

Description

@bcis-kassel

Hi,
I have a webpack config with two child-configs (one for the frontend and one for the backend).
In order to execute my onAfterDone-scripts in webpacks watch mode, I have to add the webpack-shell-plugin-next to both configs (frontend and backend). Otherwise, my script will only be executed on rebuild of the config that includes the webpack-shell-plugin-next. The problem with that solution is, that my script is executed twice, if both configuration are rebuilt.

I also tried to add a 3rd configuration that just contains the webpack-shell-plugin-next, but this configuration terminates immediately and executed the onAfterDone-script before the other configurations are finished.

So my question is: How do I have to setup webpack-shell-plugin-next to execute my script only once, while webpack rebuilds only some of the child configurations. Even if all child configurations are rebuilt, the runtime of them varies.

Thanks of the great plugin so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions