{"action":"created","issue":{"url":"https://api.github.com/repos/freelogfe/freelog-component-template/issues/4","repository_url":"https://api.github.com/repos/freelogfe/freelog-component-template","labels_url":"https://api.github.com/repos/freelogfe/freelog-component-template/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/freelogfe/freelog-component-template/issues/4/comments","events_url":"https://api.github.com/repos/freelogfe/freelog-component-template/issues/4/events","html_url":"https://github.com/freelogfe/freelog-component-template/issues/4","id":343012094,"node_id":"MDU6SXNzdWUzNDMwMTIwOTQ=","number":4,"title":"引入第三方库时，由于web component的特性导致第三方库的css未能生效","user":{"login":"daizch","id":2556794,"node_id":"MDQ6VXNlcjI1NTY3OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2556794?v=4","gravatar_id":"","url":"https://api.github.com/users/daizch","html_url":"https://github.com/daizch","followers_url":"https://api.github.com/users/daizch/followers","following_url":"https://api.github.com/users/daizch/following{/other_user}","gists_url":"https://api.github.com/users/daizch/gists{/gist_id}","starred_url":"https://api.github.com/users/daizch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daizch/subscriptions","organizations_url":"https://api.github.com/users/daizch/orgs","repos_url":"https://api.github.com/users/daizch/repos","events_url":"https://api.github.com/users/daizch/events{/privacy}","received_events_url":"https://api.github.com/users/daizch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-20T08:07:41Z","updated_at":"2018-07-20T08:12:15Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"当第三方库的css是通过js引入时，css基本是被插入到head标签内，导致无法作用到web component内的html代码。\r\n\r\n现有的打包工具也是把内联的css最后通过js插入到head处，例如某个第三方库通过webpack打包，webpack指定的内嵌css最后是插入到head标签内。"},"comment":{"url":"https://api.github.com/repos/freelogfe/freelog-component-template/issues/comments/406523540","html_url":"https://github.com/freelogfe/freelog-component-template/issues/4#issuecomment-406523540","issue_url":"https://api.github.com/repos/freelogfe/freelog-component-template/issues/4","id":406523540,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjUyMzU0MA==","user":{"login":"daizch","id":2556794,"node_id":"MDQ6VXNlcjI1NTY3OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2556794?v=4","gravatar_id":"","url":"https://api.github.com/users/daizch","html_url":"https://github.com/daizch","followers_url":"https://api.github.com/users/daizch/followers","following_url":"https://api.github.com/users/daizch/following{/other_user}","gists_url":"https://api.github.com/users/daizch/gists{/gist_id}","starred_url":"https://api.github.com/users/daizch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daizch/subscriptions","organizations_url":"https://api.github.com/users/daizch/orgs","repos_url":"https://api.github.com/users/daizch/repos","events_url":"https://api.github.com/users/daizch/events{/privacy}","received_events_url":"https://api.github.com/users/daizch/received_events","type":"User","site_admin":false},"created_at":"2018-07-20T08:12:15Z","updated_at":"2018-07-20T08:12:15Z","author_association":"CONTRIBUTOR","body":"目前的解决方案，放弃shadow dom的使用方式，直接通过自定义dom的innerHTML输出html，避开shadow dom的作用。"}}
{"actor":{"display_login":"daizch"}}