To start developing run this
npm startTo build production run this
npm run buildYou can find the production bundle in public folder
The main file is index.js (index.ts, index.tsx) from src folder.
You can import .js, .ts or .tsx files into any script file.
So you can use TypeScript or not or use somewhere.
If you don't want to use TypeScript,
you can remove tsconfig.json and declaration.d.ts.
You can import .css or .scss into a script.
So you can use SCSS or not.
import './index.css'
import './index.scss'You can import .json file into a script.
import settings from './settings.json'Add localhost.crt and localhost.key to the root of the application to use HTTPS.
You can create and set up .env file to change some features.
These options are used by default.
# you can use remote API, for example PROXY=https://localhost:9000
PROXY=false
# you can change the static server port
PORT=3000
# you can change directory and file name of ssl certificates
SSL_CRT_FILE=localhost.crt
SSL_KEY_FILE=localhost.key
# you can generate sourcemap for production build
GENERATE_SOURCEMAP=false
# by default index.js includes all styles,
# but you can keep styles into index.css with CSS_EXTRACT=true
CSS_EXTRACT=false
# import styles from './App.css'
# you can use css modules with CSS_MODULES=true
CSS_MODULES=false