UPDATE: I recommend using reason-scripts or reasonML Quickstart Steps instead of this
This repo contains the minimum amount of configuration to run:
- reasonml to javascript transpilation
- webpack-dashboard & bundle reports
- browser-sync server with automatic reloading on source changes
$ git clone https://github.com/rlucha/reasonml-minimal-config .
$ npm i
$ npm run dev
Minifies & drops dead code
$ npm run prod
It expects a src/main.re file as an entry point to create the bundle.
With every compilation a stats.json file is produced in the root, visit https://webpack.github.io/analyse/ and drop that file to get a good insight of your bundle.
Edit src/main.re and check the changes on localhost:3000