{"action":"created","issue":{"url":"https://api.github.com/repos/Justineo/vue-awesome/issues/7","repository_url":"https://api.github.com/repos/Justineo/vue-awesome","labels_url":"https://api.github.com/repos/Justineo/vue-awesome/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Justineo/vue-awesome/issues/7/comments","events_url":"https://api.github.com/repos/Justineo/vue-awesome/issues/7/events","html_url":"https://github.com/Justineo/vue-awesome/issues/7","id":182107581,"number":7,"title":"Uncaught SyntaxError: Unexpected token import","user":{"login":"ryandeussing","id":216835,"avatar_url":"https://avatars.githubusercontent.com/u/216835?v=3","gravatar_id":"","url":"https://api.github.com/users/ryandeussing","html_url":"https://github.com/ryandeussing","followers_url":"https://api.github.com/users/ryandeussing/followers","following_url":"https://api.github.com/users/ryandeussing/following{/other_user}","gists_url":"https://api.github.com/users/ryandeussing/gists{/gist_id}","starred_url":"https://api.github.com/users/ryandeussing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryandeussing/subscriptions","organizations_url":"https://api.github.com/users/ryandeussing/orgs","repos_url":"https://api.github.com/users/ryandeussing/repos","events_url":"https://api.github.com/users/ryandeussing/events{/privacy}","received_events_url":"https://api.github.com/users/ryandeussing/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2016-10-10T20:29:16Z","updated_at":"2016-12-21T19:17:19Z","closed_at":"2016-10-22T02:15:11Z","body":"First, I installed: `npm install vue-awesome --save-dev`\n\nThen I added the following lines to `main.js`, based on the readme and example: \n\n``` javascript\n\nimport Icon from 'vue-awesome/src/components/Icon.vue';\nVue.component('icon', Icon);\n\n```\n\n I get this error in the browser console:\n`> Uncaught SyntaxError: Unexpected token import          Icon.vue?7cbb:36`\n\nAm I doing something incorrect? Thx!\n"},"comment":{"url":"https://api.github.com/repos/Justineo/vue-awesome/issues/comments/268614364","html_url":"https://github.com/Justineo/vue-awesome/issues/7#issuecomment-268614364","issue_url":"https://api.github.com/repos/Justineo/vue-awesome/issues/7","id":268614364,"user":{"login":"tonypee","id":3086901,"avatar_url":"https://avatars.githubusercontent.com/u/3086901?v=3","gravatar_id":"","url":"https://api.github.com/users/tonypee","html_url":"https://github.com/tonypee","followers_url":"https://api.github.com/users/tonypee/followers","following_url":"https://api.github.com/users/tonypee/following{/other_user}","gists_url":"https://api.github.com/users/tonypee/gists{/gist_id}","starred_url":"https://api.github.com/users/tonypee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonypee/subscriptions","organizations_url":"https://api.github.com/users/tonypee/orgs","repos_url":"https://api.github.com/users/tonypee/repos","events_url":"https://api.github.com/users/tonypee/events{/privacy}","received_events_url":"https://api.github.com/users/tonypee/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T19:17:19Z","updated_at":"2016-12-21T19:17:19Z","body":"Okay, so staying with inline-css, cant you can still do inline css with the data being external, in a json file - the require would just be a little more complex:\r\n\r\nimport Icon from 'vue-awesome'\r\nimport flag from 'vue-awesome/icons/flag'  (this is json)\r\n\r\nIcon.register(flag)\r\n\r\nSo, the only difference is that the flag file is json, so it doesnt need to be compiled, and therefore you have to call Icon.register yourself - which will store the inline svg data in a map, to be used by the system as inline svg\r\n\r\n \r\n"}}
{"actor":{"display_login":"tonypee"}}