Skip to content

ReasonML minimal webpack config with webpack-dashboard & reports enabled

Notifications You must be signed in to change notification settings

rlucha/reasonml-minimal-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ReasonML minimal webpack config with webpack-dashboard & reports enabled

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published