Skip to content

Configuring CRA served from node for development env #9744

Description

@jsphkm

I found this information from the webpack-dev-server webpage:

If you're using dev-server through the Node.js API, the options in devServer will be ignored. Pass the options as a second parameter instead: new WebpackDevServer(compiler, {...}). See here for an example of how to use webpack-dev-server through the Node.js API.

The link leads to an example with the server.js that references the webpack config file.

Since CRA doesn't provide webpack naturally, and it needs to be "unplugged" for it to be available, is that the right way to set it up for node?

Has this configuration been considered so that I can do it without unplugging?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions