requirements:
- babel(+babel-loader)
- webpack
$ npm install -g babel
$ npm install babel-loader --save-dev
$ npm install -g webpack
$ webpack
or watching directory to build on the fly.
$ webpack --watch
You can access directory index.html
on browser, or use simple-httpserver
.
https://github.com/yoppi/simple-httpserver
$ simple-httpserver
Serving HTTP on localhost port 8000
then, access localhost:8000
.