title: AngularJS : automate process to minify project
body: <p>I have this interest in automate/simplify angular project with a compiler tool, which might work on everything else, but angular inject and namespacing is awkward enough to escape compiler knowledge. What is the best/professional method for doing this?</p>
  
  <p>thanks, just one last thing, </p>
  
  <pre><code>app.controller('ctrl',['$rootScope',function($rootScope){
      ...
  }]);
  </code></pre>
  
  <p>works when minified, but how do I minify</p>
  
  <pre><code>app.config(['$routeProvider', function($routeProvider){
  
  }]);
  </code></pre>
  
  <p>and does it work when I minify successive actions?</p>
  
  <pre><code>app.controller(...).directive(...).run(...)
  </code></pre>