ReasonML minimal webpack config with webpack-dashboard & reports enabled
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
config
src
.gitignore
README.md
bsconfig.json
package-lock.json
package.json

README.md

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 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