Minimal reasonml config
This repo contains the minimum amount of configuration to run:
- webpack-dashboard & bundle reports
- browser-sync server with automatic reloading on source changes
Fork / clone repo and install dependencies
$ git clone https://github.com/rlucha/reasonml-minimal-config . $ npm i
Running the development environment
$ npm run dev
Creating a production bundle
Minifies & drops dead code
$ npm run prod
It expects a src/main.re file as an entry point to create the bundle.
Check the bundle details
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.
Play with it
Edit src/main.re and check the changes on localhost:3000