This is a very basic example on how to use Webpack with Angular 2
You can clone this repository from GitHub
Once cloned, run:
npm install
Run npm run dev
A development server will be started at http://localhost:5001
Run npm run build
This will generate a /build
folder with all the bundled assets.
For simplicity reasons, the development and production config files are split up, you could keep everything in one file and add / remove loaders based on the environment.
This project is available under the MIT license.