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?
I found this information from the webpack-dev-server webpage:
The link leads to an example with the
server.jsthat 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?