install mithril --save

npm install webpack --save

# 2) add this line into the scripts section in package.json
#    &quot;scripts&quot;: {
#        &quot;start&quot;: &quot;webpack src/index.js bin/app.js --watch&quot;
#    }

# 3) create an `src/index.js` file

# 4) create an `index.html` file containing `&lt;script src=&quot;bin/app.js&quot;&gt;&lt;/script&gt;`

# 5) run bundler
npm start

# 6) open `index.html` in the (default) browser
open index.html
</code></pre>
<h4 id="step-by-step"><a href="#step-b