Minimalistic angular 2 + typescript + webpack starter project.
Example code based on Angular 2 Quick Start.
- Install dependencies by
npm i. - Start webpack development server by
npm start. - Browse to
http://localhost:8080/webpack-dev-server/(note the end '/').
- Source map
- add
"sourceMap": trueoption tocompilerOptionssection oftsconfig.json. - add
devtool: 'source-map'option to webpack.config.js - start webpack development server with
-doption.
- add
- Typescript support
- Using
ts-loader
- Using
- Import pre-built Angular 2 bundles
- Use webpack
noParseoption to avoid warning.
- Use webpack