1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
nqp/examples/webpacked
======================
You need to install `webpack`. And then, using `npm`, install `src/vm/js/nqp-loader` and
`src/vm/js/nqp-runtime` from here and install `empty-module` and `browserify-bignum` from
npm. For increased awesomeness, we use `webpack-dev-server` and
`webpack-reload-plugin` so you need to install those, too.
Afterwards
```
$ webpack
```
Should bundle up `example.nqp` into `bundle.js`, which is loaded by `index.html`.
If you run:
```
$ webpack-dev-server --progress --colors -d
```
A webserver will startup at `localhost:8080` and `example.nqp` will be
automatically reloaded and recompiled when you change it.
|