我有一個成長的角度應用程序,和我的index.html已經是這樣的:angular.js多個js文件
<script type="text/javascript" src="public/js/libs/bower/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="public/js/libs/bower/spin.js/spin.js"></script>
<script type="text/javascript" src="public/js/libs/overlay.js"></script>
<script type="text/javascript" src="public/js/libs/bower/angular/angular.min.js"></script>
<script type="text/javascript" src="public/js/libs/bower/angular-route/angular-route.min.js"></script>
<script type="text/javascript" src="public/js/libs/bower/angular-cookies/angular-cookies.min.js"></script>
<script type="text/javascript" src="public/js/libs/bower/angular-resource/angular-resource.min.js"></script>
<script type="text/javascript" src="public/js/libs/bower/angular-sanitize/angular-sanitize.min.js"></script>
<script type="text/javascript" src="public/js/libs/bower/bootstrap/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="public/js/libs/jquery-shake.js"></script>
<script type="text/javascript" src="public/js/libs/bower/pwstrength-bootstrap/dist/pwstrength-bootstrap-1.2.0.min.js"></script>
<script type="text/javascript" src="public/js/app.js"></script>
<script type="text/javascript" src="public/js/controllers/import.js"></script>
<script type="text/javascript" src="public/js/controllers/login.js"></script>
<script type="text/javascript" src="public/js/controllers/main_page.js"></script>
<script type="text/javascript" src="public/js/controllers/manage_users.js"></script>
<script type="text/javascript" src="public/js/controllers/new_user.js"></script>
<script type="text/javascript" src="public/js/auth.js"></script>
<script type="text/javascript" src="public/js/services/httpAuthInterceptor.js"></script>
<script type="text/javascript" src="public/js/services/spinnerHttpInterceptor.js"></script>
<script type="text/javascript" src="public/js/router.js"></script>
<script type="text/javascript" src="public/js/utils.js"></script>
我不希望我的index.html是一個爛攤子,Require.JS不一個選項,它必須與angularAMD一起使用,這與angular route resolve不兼容 - 這是我的應用程序的強制部分。
如何清理我的JS負載?我聽說過Grunt,它如何幫助我?這只是一個任務跑步者...
您能否詳細說明「angularADD與角度路由解析不兼容」?在使用angularAMD時,在哪種情況下路由解析不適用於您? – marcoseu