Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (20 loc) · 757 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 757 Bytes

flow-react-example

For the setup, run npm install. Make sure to build gentype.native, as stated in the project root README.

Running the Project

# If not done yet, do an initial build
npm run build

# In one tab, run webpack
npm run webpack

# In another tab, start the BuckleScript compiler
npm start

Then open src/index.html to see the links to the examples (no server needed!).

Build for Production

npm run build
npm run webpack:production

This will replace the development JS artifact for an optimized version.

To enable dead code elimination, change bsconfig.json's package-specs module from "commonjs" to "es6". Then re-run the above 2 commands. This will allow Webpack to remove unused code.