Skip to content

run webpack BEFORE precompilation?Β #2237

Closed
@catmando

Description

@catmando

Is there any reason to run webpack after precompilation?

Its obscure but the reason why we want to run webpack first is as follows:

In order to integrate server side prerendering with react you need to supply different versions of some of the react libraries, but then you also want to precompile the assets but with one of the two different pack files included.

But this does not work unless webpack compile is run first.

I have monkey patched this, and it works (at least for some limited cases)

Was wondering if I did a PR to swap them around, would it be accepted or is there some technical reason why the order is this way?

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