Mithril 1.1 Simple App Tutorial

April 7, 2017 ยท View on GitHub

Typescript version adapted from: https://mithril.js.org/simple-application.html

Uses types from DefinitelyTyped on npm (@types/mithril)

Install:

npm install

Start localhost server, compile JS & CSS, watch for changes:

npm start

Then go to http://localhost:3000/ in your browser.

Build minified:

npm run build

Outputs to public/js/app.js and public/css/app.js

Contents

  1. 1Install:
  2. 1.1Start localhost server, compile JS & CSS, watch for changes:
  3. 1.2Build minified: