App Configuration

Create React App Configuration Reference

Create-react-app can be configured in "/config-overrides.js" with react-app-rewired extension.

config-overrides.js
// Overriding CreateReactApp settings, ref: https://github.com/arackaf/customize-cra
const {
override,
// fixBabelImports,
addLessLoader,
useEslintRc,
addDecoratorsLegacy,
useBabelRc,
} = require('customize-cra')
// eslint config
const eslintConfig = require('./.eslintrc.js');
const useEslintConfig = configRules => config => {
// load .eslintrc.js config
}
module.exports = override(
addDecoratorsLegacy(),
useEslintRc(),
addLessLoader({
javascriptEnabled: true,
}),
useEslintConfig(eslintConfig),
useBabelRc(),
)