@invisionag/cra-config

yarn add --dev react-app-rewired @invisionag/cra-config

Usage no npm install needed!

<script type="module">
  import invisionagCraConfig from 'https://cdn.skypack.dev/@invisionag/cra-config';
</script>

README

CRA config

Installation

yarn add --dev react-app-rewired @invisionag/cra-config

Create a .env file with:

SKIP_PREFLIGHT_CHECK=true
PORT="3040"               # change the port
REACT_APP_IVX_PORT="3040" # keep this equal to the one above
PUBLIC_URL="/start/"      # the public url for your app on www.injixo.local
BROWSER="none"

Change the package.json scripts to:

{
  "scripts": {
    "start": "react-app-rewired start",
    "test": "react-app-rewired test --coverage",
    "build": "react-app-rewired build"
  }
}

Create a /config-overrides.js file with the following content:

module.exports = require('@invisionag/cra-config');