{"action":"closed","issue":{"url":"https://api.github.com/repos/linnovate/mean/issues/940","labels_url":"https://api.github.com/repos/linnovate/mean/issues/940/labels{/name}","comments_url":"https://api.github.com/repos/linnovate/mean/issues/940/comments","events_url":"https://api.github.com/repos/linnovate/mean/issues/940/events","html_url":"https://github.com/linnovate/mean/issues/940","id":51115531,"number":940,"title":"asset.json javascript file order scrambled in /","user":{"login":"MichaelJCole","id":1504790,"avatar_url":"https://avatars.githubusercontent.com/u/1504790?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelJCole","html_url":"https://github.com/MichaelJCole","followers_url":"https://api.github.com/users/MichaelJCole/followers","following_url":"https://api.github.com/users/MichaelJCole/following{/other_user}","gists_url":"https://api.github.com/users/MichaelJCole/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelJCole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelJCole/subscriptions","organizations_url":"https://api.github.com/users/MichaelJCole/orgs","repos_url":"https://api.github.com/users/MichaelJCole/repos","events_url":"https://api.github.com/users/MichaelJCole/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelJCole/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-05T16:11:10Z","updated_at":"2015-11-07T23:18:59Z","closed_at":"2015-11-07T23:18:59Z","body":"Hi, my asset.json files are getting reordered in my / document.  Any suggestions as to why?\r\n\r\nasset.json\r\n```javascript\r\n{\r\n  \"core\": {\r\n    \"css\": {\r\n      \"bower_components/build/css/dist.min.css\": []\r\n    },\r\n    \"js\": {\r\n      \"bower_components/build/js/dist.min.js\": [\r\n        \"bower_components/jquery/dist/jquery.min.js\",\r\n        \"bower_components/bootstrap/dist/bootstrap.min.js\",\r\n        \"bower_components/bootstrap/js/transition.js\",\r\n        \"bower_components/bootstrap/js/collapse.js\",\r\n        \"bower_components/bootstrap/js/dropdown.js\",\r\n        \"bower_components/bootstrap/js/button.js\",\r\n        \"bower_components/angular/angular.js\",\r\n        \"bower_components/angular-mocks/angular-mocks.js\",\r\n        \"bower_components/angular-cookies/angular-cookies.js\",\r\n        \"bower_components/angular-resource/angular-resource.js\",\r\n        \"bower_components/angular-ui-router/release/angular-ui-router.js\",\r\n        \"bower_components/angular-bootstrap/ui-bootstrap.js\",\r\n        \"bower_components/angular-bootstrap/ui-bootstrap-tpls.js\"\r\n      ]\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nMy site's / document:\r\n\r\n```html\r\n<html lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:fb=\"https://www.facebook.com/2008/fbml\" itemscope=\"itemscope\" itemtype=\"http://schema.org/Product\">\r\n<head>\r\n  <meta charset=\"utf-8\">\r\n  <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\r\n  <meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\r\n\r\n  <title>MEAN - FullStack JS - Development - MEAN - FullStack JS - Development</title>\r\n  ...\r\n  <link rel=\"stylesheet\" href=\"/bower_components/bootstrap/dist/css/bootstrap.css\">\r\n  ...  \r\n    <!--[if lt IE 9]>\r\n    <script src=\"http://html5shim.googlecode.com/svn/trunk/html5.js\"></script>\r\n    <![endif]-->\r\n</head>\r\n\r\n<body data-ng-controller=\"ThemeController\" ng-cloak class=\"ng-cloak\" ng-class=\"state\">\r\n    <div class=\"navbar navbar-default\" data-ng-include=\"'/system/views/header.html'\" data-role=\"navigation\"></div>\r\n...\r\n</div>\r\n\r\n  <script type=\"text/javascript\" src=\"/bower_components/jquery/dist/jquery.min.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/bootstrap/js/transition.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/angular-bootstrap/ui-bootstrap.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/angular-bootstrap/ui-bootstrap-tpls.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/bootstrap/js/collapse.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/bootstrap/js/dropdown.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/bootstrap/js/button.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/angular/angular.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/angular-mocks/angular-mocks.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/angular-cookies/angular-cookies.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/angular-resource/angular-resource.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/bower_components/angular-ui-router/release/angular-ui-router.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/packages/contrib/mean-admin/public/assets/lib/ng-clip/src/ngClip.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/packages/contrib/mean-admin/public/assets/lib/zeroclipboard/dist/ZeroClipboard.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/packages/articles/public/articles.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/packages/theme/public/theme.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/packages/system/public/init.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/packages/system/public/system.js\"></script>\r\n  <script type=\"text/javascript\" src=\"/packages/users/public/users.js\"></script>\r\n  ...\r\n```\r\n\r\nI think it's causing this error browser error:\r\n\r\n```\r\nUncaught ReferenceError: angular is not defined ui-bootstrap.js:8 (anonymous function)\r\nui-bootstrap-tpls.js:8 \r\nUncaught ReferenceError: angular is not defined\r\nangular.js:80 Uncaught Error: [$injector:modulerr] Failed to instantiate module mean due to:\r\nError: [$injector:modulerr] Failed to instantiate module ui.bootstrap due to:\r\nError: [$injector:nomod] Module 'ui.bootstrap' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.\r\nhttp://errors.angularjs.org/1.3.2/$injector/nomod?p0=ui.bootstrap\r\n    at REGEX_STRING_REGEXP (http://localhost:3000/bower_components/angular/angular.js:80:12)\r\n    at http://localhost:3000/bower_components/angular/angular.js:1764:17\r\n    at ensure (http://localhost:3000/bower_components/angular/angular.js:1688:38)\r\n    at module (http://localhost:3000/bower_components/angular/angular.js:1762:14)\r\n    at http://localhost:3000/bower_components/angular/angular.js:4030:22\r\n    at forEach (http://localhost:3000/bower_components/angular/angular.js:339:20)\r\n    at loadModules (http://localhost:3000/bower_components/angular/angular.js:4014:5)\r\n    at http://localhost:3000/bower_components/angular/angular.js:4031:40\r\n    at forEach (http://localhost:3000/bower_components/angular/angular.js:339:20)\r\n    at loadModules (http://localhost:3000/bower_components/angular/angular.js:4014:5)\r\nhttp://errors.angularjs.org/1.3.2/$injector/modulerr?p0=ui.bootstrap&p1=Err…2F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A4014%3A5)\r\n    at REGEX_STRING_REGEXP (http://localhost:3000/bower_components/angular/angular.js:80:12)\r\n    at http://localhost:3000/bower_components/angular/angular.js:4053:15\r\n    at forEach (http://localhost:3000/bower_components/angular/angular.js:339:20)\r\n    at loadModules (http://localhost:3000/bower_components/angular/angular.js:4014:5)\r\n    at http://localhost:3000/bower_components/angular/angular.js:4031:40\r\n    at forEach (http://localhost:3000/bower_components/angular/angular.js:339:20)\r\n    at loadModules (http://localhost:3000/bower_components/angular/angular.js:4014:5)\r\n    at createInjector (http://localhost:3000/bower_components/angular/angular.js:3940:11)\r\n    at doBootstrap (http://localhost:3000/bower_components/angular/angular.js:1451:20)\r\n    at Object.bootstrap (http://localhost:3000/bower_components/angular/angular.js:1472:12)\r\nhttp://errors.angularjs.org/1.3.2/$injector/modulerr?p0=mean&p1=Error%3A%20…F%2Flocalhost%3A3000%2Fbower_components%2Fangular%2Fangular.js%3A1472%3A12)\r\n```\r\n"}}