Example of Mithril 1 with ES6 Classes
-
Install (if you don't have them):
-
Run:
brunch watch --server
— watches the project with continuous rebuild. This will also launch HTTP server with pushState.- Now you can see the app in the url: http://localhost:3333
brunch build --production
— builds minified project for production
-
Learn:
public/
dir is fully auto-generated and served by HTTP server. Write your code inapp/
dir.- Place static files you want to be copied from
app/assets/
topublic/
. - Mithril site
- Brunch site, Getting started guide