{"action":"created","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/362","repository_url":"https://api.github.com/repos/meanjs/mean","labels_url":"https://api.github.com/repos/meanjs/mean/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/362/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/362/events","html_url":"https://github.com/meanjs/mean/issues/362","id":54300927,"number":362,"title":"Make it easier to load resources in production","user":{"login":"FREEZX","id":243900,"avatar_url":"https://avatars.githubusercontent.com/u/243900?v=3","gravatar_id":"","url":"https://api.github.com/users/FREEZX","html_url":"https://github.com/FREEZX","followers_url":"https://api.github.com/users/FREEZX/followers","following_url":"https://api.github.com/users/FREEZX/following{/other_user}","gists_url":"https://api.github.com/users/FREEZX/gists{/gist_id}","starred_url":"https://api.github.com/users/FREEZX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FREEZX/subscriptions","organizations_url":"https://api.github.com/users/FREEZX/orgs","repos_url":"https://api.github.com/users/FREEZX/repos","events_url":"https://api.github.com/users/FREEZX/events{/privacy}","received_events_url":"https://api.github.com/users/FREEZX/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meanjs/mean/labels/enhance:feature","name":"enhance:feature","color":"84b6eb"},{"url":"https://api.github.com/repos/meanjs/mean/labels/feedback:discuss","name":"feedback:discuss","color":"cc317c"},{"url":"https://api.github.com/repos/meanjs/mean/labels/feedback:question","name":"feedback:question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2015-01-14T09:32:28Z","updated_at":"2016-08-28T17:16:45Z","closed_at":null,"body":"In the current state of the project, when you build the application (mincss+uglify), the minified results are placed in the public/dist folder.\r\nIf you were using relative paths for images, fonts and such in css files, (which in my opinion is a logical solution, instead of writing /modules/something in front of every resource needed), your app won't load resources due to different paths of minified css and the actual path of resources.\r\nFor this type of thing to work, it is much needed for the build script to also copy all other resource files to the dist folder with their original file structure, and also putting the minified css to public/dist/css folder.\r\n\r\nThis should work out of the box, instead of having to manually change paths in all css files or moving files around manually."},"comment":{"url":"https://api.github.com/repos/meanjs/mean/issues/comments/242986711","html_url":"https://github.com/meanjs/mean/issues/362#issuecomment-242986711","issue_url":"https://api.github.com/repos/meanjs/mean/issues/362","id":242986711,"user":{"login":"lirantal","id":316371,"avatar_url":"https://avatars.githubusercontent.com/u/316371?v=3","gravatar_id":"","url":"https://api.github.com/users/lirantal","html_url":"https://github.com/lirantal","followers_url":"https://api.github.com/users/lirantal/followers","following_url":"https://api.github.com/users/lirantal/following{/other_user}","gists_url":"https://api.github.com/users/lirantal/gists{/gist_id}","starred_url":"https://api.github.com/users/lirantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lirantal/subscriptions","organizations_url":"https://api.github.com/users/lirantal/orgs","repos_url":"https://api.github.com/users/lirantal/repos","events_url":"https://api.github.com/users/lirantal/events{/privacy}","received_events_url":"https://api.github.com/users/lirantal/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T17:16:45Z","updated_at":"2016-08-28T17:16:45Z","body":"This topic is definitely an important issue to handle.\r\nWould anyone like to review how we can approach a similar production build (dist directory) for this?\r\n\r\ncc @codydaig @mleanos @ilanbiala @FREEZX "}}
{"actor":{"display_login":"lirantal"}}