Hello, I need to build for different targets and according to webpack's documentation, I have to use multiple configurations in order to do that. So instead of returning a single configuration, I return an array containing both configurations:
Despite this error, the files seem to be correctly compiled.
I have no idea what this error means since publicPath is an option set in output, and it is defined is both configurations. I don't have this error if I return a single configuration (both work).
I am missing something or is react-app-rewired not compatible with multiple configurations? How can I do?
I found out where the problem comes from.
It's because of this line on CRA's build script. With multiple configurations, config.output is undefined since config is an array.
I don't think react-app-rewired can solve this problem so I will close this issue.
Hello, I need to build for different targets and according to webpack's documentation, I have to use multiple configurations in order to do that. So instead of returning a single configuration, I return an array containing both configurations:
Now, if I try to build the app I get an error:
Despite this error, the files seem to be correctly compiled.
I have no idea what this error means since
publicPath
is an option set inoutput
, and it is defined is both configurations. I don't have this error if I return a single configuration (both work).I am missing something or is
react-app-rewired
not compatible with multiple configurations? How can I do?