Skip to content

Available Scripts

Garett Tok Ern Liang edited this page Sep 16, 2019 · 3 revisions

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

yarn analyze

Uses webpack-app-analyzer to generate an analysis of the size of the bundle, as well as the contribution. Note that the values reflected may not be accurate, but the relative sizes for each component should be. This is a handy tool to use when trying to cut down the bundle size.

Clone this wiki locally