Search code examples
angularjsbackbone.jsrequirejsjs-amdr.js

Building requirejs and angularjs application


Found a good tutorial post about requirejs and backbonejs here and the updated scripts here. In this article he build all script files to a single JavaScript including views and models. Like this, I need to build my angularjs and requirejs app to a single js file written using this post and this script.

Can anyone help me to do this?


Solution

  • Even styles and images (via mixins) may be included, using RequireJs plugins line require-less and require-css, but this is another story).

    Meanwhile, checkout this demo repository - I just updated it. It now builds text files into bundle as well.