Closed hboylan closed 3 years ago
Thank you @hboylan, will add it! ;) I believe CRA is supporting --stats
now and the output can be consumed by the @relative-ci/agent CLI, will add that case as well.
Added: https://relative-ci.com/documentation/setup/webpack-plugin#create-react-app. Thanks again @hboylan!
It would be helpful to include a "CRA config" of the Configure agent webpack plugin section of documentation. After some digging, I found the Use with create-react-app section did the trick.
This could be adapted to describe
RelativeCiAgentWebpackPlugin
like the following:CRA config:
You will need to customize the default webpack config. That can be done by using react-app-rewired which is one of create-react-app's custom config solutions. You will also need customize-cra.
or
Add a script in
package.json
:Create a file
config-overrides.js
at the same level aspackage.json
.