{"action":"created","issue":{"url":"https://api.github.com/repos/ionic-team/stencil/issues/586","repository_url":"https://api.github.com/repos/ionic-team/stencil","labels_url":"https://api.github.com/repos/ionic-team/stencil/issues/586/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/stencil/issues/586/comments","events_url":"https://api.github.com/repos/ionic-team/stencil/issues/586/events","html_url":"https://github.com/ionic-team/stencil/issues/586","id":301578014,"node_id":"MDU6SXNzdWUzMDE1NzgwMTQ=","number":586,"title":"Assets inside component are returning 404","user":{"login":"harshabonthu","id":3464376,"node_id":"MDQ6VXNlcjM0NjQzNzY=","avatar_url":"https://avatars1.githubusercontent.com/u/3464376?v=4","gravatar_id":"","url":"https://api.github.com/users/harshabonthu","html_url":"https://github.com/harshabonthu","followers_url":"https://api.github.com/users/harshabonthu/followers","following_url":"https://api.github.com/users/harshabonthu/following{/other_user}","gists_url":"https://api.github.com/users/harshabonthu/gists{/gist_id}","starred_url":"https://api.github.com/users/harshabonthu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshabonthu/subscriptions","organizations_url":"https://api.github.com/users/harshabonthu/orgs","repos_url":"https://api.github.com/users/harshabonthu/repos","events_url":"https://api.github.com/users/harshabonthu/events{/privacy}","received_events_url":"https://api.github.com/users/harshabonthu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jgw96","id":8823093,"node_id":"MDQ6VXNlcjg4MjMwOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/8823093?v=4","gravatar_id":"","url":"https://api.github.com/users/jgw96","html_url":"https://github.com/jgw96","followers_url":"https://api.github.com/users/jgw96/followers","following_url":"https://api.github.com/users/jgw96/following{/other_user}","gists_url":"https://api.github.com/users/jgw96/gists{/gist_id}","starred_url":"https://api.github.com/users/jgw96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgw96/subscriptions","organizations_url":"https://api.github.com/users/jgw96/orgs","repos_url":"https://api.github.com/users/jgw96/repos","events_url":"https://api.github.com/users/jgw96/events{/privacy}","received_events_url":"https://api.github.com/users/jgw96/received_events","type":"User","site_admin":false},"assignees":[{"login":"jgw96","id":8823093,"node_id":"MDQ6VXNlcjg4MjMwOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/8823093?v=4","gravatar_id":"","url":"https://api.github.com/users/jgw96","html_url":"https://github.com/jgw96","followers_url":"https://api.github.com/users/jgw96/followers","following_url":"https://api.github.com/users/jgw96/following{/other_user}","gists_url":"https://api.github.com/users/jgw96/gists{/gist_id}","starred_url":"https://api.github.com/users/jgw96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgw96/subscriptions","organizations_url":"https://api.github.com/users/jgw96/orgs","repos_url":"https://api.github.com/users/jgw96/repos","events_url":"https://api.github.com/users/jgw96/events{/privacy}","received_events_url":"https://api.github.com/users/jgw96/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-03-01T22:08:34Z","updated_at":"2018-10-08T14:45:53Z","closed_at":"2018-03-01T22:39:33Z","author_association":"NONE","body":"**Stencil version:**\r\n```\r\n \"@stencil/core\": \"^0.6.8\"\r\n```\r\n\r\n**I'm submitting a:**\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com\r\n\r\n**Current behavior:**\r\nWhen I have an assets folder inside src and my component is using an image from this assets folder, after generating dist folder for component and trying to integrate in a static page or any app. I am getting a 404 on the Image\r\n\r\n**Expected behavior:**\r\nWe should be able to use the files from assets folder that are included with the stencil component\r\n\r\n**Steps to reproduce:**\r\n- Create `assets` folder inside src and in component tsx or css use an image from the assets folder.\r\n- Generate the build for this component\r\n- Create an example folder with index.html and copy the dist folder from above into this example folder\r\n- Include the reference to component.js in index.html and component tag\r\n- Serve this example folder using local http server.\r\n- You will notice a 404 for the image that was being using in the component css or html.\r\n\r\n**Related code:**\r\n\r\nSample repo https://github.com/harshabonthu/stencil-assets\r\n\r\n**Other information:**\r\nI see that assets is being copied into dist/Collection folder and not component folder. Based on chrome source tab I don't see the assets folder in dist folder. I tried copying assets folder from dist/collection to dist/mycomponent that didn't work either.\r\nhttps://cl.ly/0h2n1D3T2S2n"},"comment":{"url":"https://api.github.com/repos/ionic-team/stencil/issues/comments/427863328","html_url":"https://github.com/ionic-team/stencil/issues/586#issuecomment-427863328","issue_url":"https://api.github.com/repos/ionic-team/stencil/issues/586","id":427863328,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzg2MzMyOA==","user":{"login":"joeleduardo","id":4685279,"node_id":"MDQ6VXNlcjQ2ODUyNzk=","avatar_url":"https://avatars2.githubusercontent.com/u/4685279?v=4","gravatar_id":"","url":"https://api.github.com/users/joeleduardo","html_url":"https://github.com/joeleduardo","followers_url":"https://api.github.com/users/joeleduardo/followers","following_url":"https://api.github.com/users/joeleduardo/following{/other_user}","gists_url":"https://api.github.com/users/joeleduardo/gists{/gist_id}","starred_url":"https://api.github.com/users/joeleduardo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeleduardo/subscriptions","organizations_url":"https://api.github.com/users/joeleduardo/orgs","repos_url":"https://api.github.com/users/joeleduardo/repos","events_url":"https://api.github.com/users/joeleduardo/events{/privacy}","received_events_url":"https://api.github.com/users/joeleduardo/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T14:45:53Z","updated_at":"2018-10-08T14:45:53Z","author_association":"NONE","body":"I have same issue... any news?"}}
{"actor":{"display_login":"joeleduardo"}}