Angular and Webpack Skeleton

Install

Install globally webpack-dev-server:

npm install -g webpack-dev-server

For Angular 4 use:

Clone this repository, remove .git dir and run npm install:

git clone git@github.com:erikfig/angular2-webpack-skeleton.git
cd angular2-webpack-skeleton
npm install

For Angular 2 use:

Clone this repository using tab v2.0.0, remove .git dir and run npm install:

git clone --branch v2.0.0 git@github.com:erikfig/angular2-webpack-skeleton.git
cd angular2-webpack-skeleton
npm install

Or use NgInstall.

Usage

Create your app in src diretory.

Commands:

  • npm start - run developer server in port 8080
  • npm run build - run de build tasks to production (in dist directory)
  • npm test - run de tests

Contributing

Only send PRs to this repository.