{"action":"created","issue":{"url":"https://api.github.com/repos/keshavos/generator-angularjs-cordova/issues/47","labels_url":"https://api.github.com/repos/keshavos/generator-angularjs-cordova/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/keshavos/generator-angularjs-cordova/issues/47/comments","events_url":"https://api.github.com/repos/keshavos/generator-angularjs-cordova/issues/47/events","html_url":"https://github.com/keshavos/generator-angularjs-cordova/issues/47","id":105557772,"number":47,"title":"Dist task break CSS imgs urls","user":{"login":"remydavid","id":504014,"avatar_url":"https://avatars.githubusercontent.com/u/504014?v=3","gravatar_id":"","url":"https://api.github.com/users/remydavid","html_url":"https://github.com/remydavid","followers_url":"https://api.github.com/users/remydavid/followers","following_url":"https://api.github.com/users/remydavid/following{/other_user}","gists_url":"https://api.github.com/users/remydavid/gists{/gist_id}","starred_url":"https://api.github.com/users/remydavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remydavid/subscriptions","organizations_url":"https://api.github.com/users/remydavid/orgs","repos_url":"https://api.github.com/users/remydavid/repos","events_url":"https://api.github.com/users/remydavid/events{/privacy}","received_events_url":"https://api.github.com/users/remydavid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-09T09:22:20Z","updated_at":"2015-09-29T07:34:42Z","closed_at":null,"body":"Hello,\r\n\r\nThe default Gruntfile dist task does not handle url rewrite in CSS correctly.\r\nI made a simple test adding 2 images to the demo app, one with a CSS relative path, the other with a absolute path :\r\ndemo.css\r\n\r\n    #test_img_rel{\r\n        background: url('../img/android_rel.png');\r\n        width:128px;\r\n        height:128px;\r\n    }\r\n \r\n    #test_img_abs{\r\n      background: url('/img/android_abs.png');\r\n      width:128px;\r\n      height:128px;\r\n    }\r\n\r\nhome.html\r\n\r\n    <div class=\"page-header\">\r\n        <h1 id=\"home-h1\">Congratulations!</h1>\r\n    </div>\r\n    <p id=\"home-content\">\r\n        You have successfully created an AngularJs application running within a cordova app !\r\n        <div id=\"test_img_rel\"></div>\r\n        <div id=\"test_img_abs\"></div>    \r\n    </p>\r\n\r\nBoth images are displayed fine with grunt serve, but do not display with grunt serve:dist and cordova run android. The reason is the dist task replace CSS img urls with absolute paths.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/keshavos/generator-angularjs-cordova/issues/comments/143973579","html_url":"https://github.com/keshavos/generator-angularjs-cordova/issues/47#issuecomment-143973579","issue_url":"https://api.github.com/repos/keshavos/generator-angularjs-cordova/issues/47","id":143973579,"user":{"login":"IVLMediaInc","id":7751706,"avatar_url":"https://avatars.githubusercontent.com/u/7751706?v=3","gravatar_id":"","url":"https://api.github.com/users/IVLMediaInc","html_url":"https://github.com/IVLMediaInc","followers_url":"https://api.github.com/users/IVLMediaInc/followers","following_url":"https://api.github.com/users/IVLMediaInc/following{/other_user}","gists_url":"https://api.github.com/users/IVLMediaInc/gists{/gist_id}","starred_url":"https://api.github.com/users/IVLMediaInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IVLMediaInc/subscriptions","organizations_url":"https://api.github.com/users/IVLMediaInc/orgs","repos_url":"https://api.github.com/users/IVLMediaInc/repos","events_url":"https://api.github.com/users/IVLMediaInc/events{/privacy}","received_events_url":"https://api.github.com/users/IVLMediaInc/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T07:34:42Z","updated_at":"2015-09-29T07:34:42Z","body":"+1"}}