Use react-app-rewired to modify the default output options
yarn add --dev LuHugo/react-app-rewire-output
OR
npm install --dev LuHugo/react-app-rewire-output
const rewireOutput = require('react-app-rewire-output');
module.exports = function override(config, env) {
if (env === 'production') {
config = rewireOutput({
path: './dist'
})(config, env);
}
return config;
}