roxolan / webpack-babel-demo

Home Page:https://leanpub.com/setting-up-es6/read#sec_webpack-babel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpack Babel demo

Demonstrates how to use webpack with Babel.

Installation:

cd webpack-babel-demo/
npm install

There are three ways in which you can build and run the web app:

  • Build once:
    • npm run build
    • Open build/index.html
  • Watch files continuously, rebuild incrementally, whenever one of them changes:
    • npm run watch
    • Open build/index.html, manually reload page in browser whenever there was a change
  • Hot reloading via webpack dev server:
    • npm start
    • Go to http://localhost:8080/, page reloads automatically when there are changes

About

https://leanpub.com/setting-up-es6/read#sec_webpack-babel

License:MIT License


Languages

Language:JavaScript 84.4%Language:HTML 15.6%