Yeah… I have to use Angular 1 once again. So… Why not embrace (and enhance the environment) it a little bit?

tldr;

Just checkout my github repo: angular-rollup-boilerplate

The idea behind all of this was to use Angular 1 without browserify, webpack, bower or gulp.

I liked Rollup from the start. It’s very new, easy to use and it does tree-shaking algorithm.

OK, enough with the chit-chat. Show us what you got

What I did was create a rollup.config.js file so I had a bundle with all my JavaScript code needed and another bundle file with all the css I needed compiled from stylus sources.

The code above, once executed, will create de bundle.js, bundle.css, start the live reload of the application and watch for changes.

I hope the code above will be helpful in your future projects. As a good source and example, here is a github repo I created.