Skip to content

Proposal: add server config for static mocks via webpack-dev-server #4367

Closed
@kdimatteo

Description

@kdimatteo

When developing large apps which require many static mocks, we need to run a separate instance of a server so that we can proxy API calls so an endpoint which return known results.

Since ng serve already invokes webpack-dev-server, we just need a way to pass a setup() method (webpack docs) to handle the routing.

...this save us from spinning up a second server.

PR is open, hoping to get some perspective whether this approach makes sense.

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