Angular2 starter seed based on Rollup and BrowserSync. Production builds including AoT steps.
First, clone this repository.
git clone https://github.com/jkuri/angular2-rollup-starter.git
Move into cloned directory and run
npm install
npm run serve
Note Initial load takes some time so vendor files are generated. Then it runs like a charm with cached builds which happens to be really fast.
This serves your app with live-reload enabled.
Production builds automatically includes AoT (Ahead of Time) compilation steps.
npm run roll
This starter comes with integrated SASS support. Just rename src/styles/app.css
to src/styles/app.sass
and that file will serves as the entry point. Any other .sass
files should be imported into main app.sass
.
This is hardcoded for now, but can change in the future for more flexible style alignement.