0.0.3 • Published 5 years ago

@invisionag/cra-config v0.0.3

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
5 years ago

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');