ReasonML minimal webpack config with webpack-dashboard & reports enabled
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

UPDATE: I recommend using reason-scripts or reasonML Quickstart Steps instead of this

Minimal reasonml config

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

Fork / clone repo and install dependencies

$ git clone .
$ npm i

Running the development environment

$ npm run dev

Creating a production bundle

Minifies & drops dead code

$ npm run prod

It expects a src/ 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 and drop that file to get a good insight of your bundle.

Play with it

Edit src/ and check the changes on localhost:3000