{"action":"created","issue":{"url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/11","repository_url":"https://api.github.com/repos/SimulatedGREG/electron-vue","labels_url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/11/comments","events_url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/11/events","html_url":"https://github.com/SimulatedGREG/electron-vue/issues/11","id":169072629,"number":11,"title":"Suggest to support LiveScript","user":{"login":"wuxianliang","id":2120879,"avatar_url":"https://avatars.githubusercontent.com/u/2120879?v=3","gravatar_id":"","url":"https://api.github.com/users/wuxianliang","html_url":"https://github.com/wuxianliang","followers_url":"https://api.github.com/users/wuxianliang/followers","following_url":"https://api.github.com/users/wuxianliang/following{/other_user}","gists_url":"https://api.github.com/users/wuxianliang/gists{/gist_id}","starred_url":"https://api.github.com/users/wuxianliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuxianliang/subscriptions","organizations_url":"https://api.github.com/users/wuxianliang/orgs","repos_url":"https://api.github.com/users/wuxianliang/repos","events_url":"https://api.github.com/users/wuxianliang/events{/privacy}","received_events_url":"https://api.github.com/users/wuxianliang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-03T08:10:02Z","updated_at":"2016-08-03T15:44:38Z","closed_at":null,"body":"Dear @SimulatedGREG \r\n  Thank you very much! This project help me a lot! But I partially failed when I add LiveScript. It is easy to use LiveScript inside Vue's component, but outside. I have tried for a long time but never found a similar solution. Could not understand why adding this snippet in webpack.config.js does not work. @roosephu would you like to share more knowledge on this issue? Thanks.\r\n```javascript\r\n{\r\n      test: /\\.ls$/,\r\n      loader: 'livescript-loader'\r\n},\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/comments/237277346","html_url":"https://github.com/SimulatedGREG/electron-vue/issues/11#issuecomment-237277346","issue_url":"https://api.github.com/repos/SimulatedGREG/electron-vue/issues/11","id":237277346,"user":{"login":"SimulatedGREG","id":8327811,"avatar_url":"https://avatars.githubusercontent.com/u/8327811?v=3","gravatar_id":"","url":"https://api.github.com/users/SimulatedGREG","html_url":"https://github.com/SimulatedGREG","followers_url":"https://api.github.com/users/SimulatedGREG/followers","following_url":"https://api.github.com/users/SimulatedGREG/following{/other_user}","gists_url":"https://api.github.com/users/SimulatedGREG/gists{/gist_id}","starred_url":"https://api.github.com/users/SimulatedGREG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimulatedGREG/subscriptions","organizations_url":"https://api.github.com/users/SimulatedGREG/orgs","repos_url":"https://api.github.com/users/SimulatedGREG/repos","events_url":"https://api.github.com/users/SimulatedGREG/events{/privacy}","received_events_url":"https://api.github.com/users/SimulatedGREG/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T15:44:38Z","updated_at":"2016-08-03T15:44:38Z","body":"@wuxianliang \r\n\r\nI'm having no issues when using LiveScript outside of a Vue component file. Were you sure to install the [`livescript-loader`](https://www.npmjs.com/package/livescript-loader) in the correct `package.json`? ([more info](https://simulatedgreg.gitbooks.io/electron-vue/content/docs/project_structure.html#packagejson-is-for-all-your-development-needs))\r\n\r\nSteps I took to get this working:\r\n1. Use `vue-cli` to scaffold a new project\r\n2. Installed [`livescript-loader`](https://www.npmjs.com/package/livescript-loader) in root directory of application (not inside the `app` directory).\r\n3. Added the loader to `webpack.config.js` (at line 43, just after `vue-loader`)\r\n```js\r\n{\r\n  test: /\\.ls$/,\r\n  loader: 'livescript-loader'\r\n}\r\n```\r\nThen made a `test.ls` file inside `./app/src` with...\r\n```ls\r\nconsole.log 'hello world'\r\n```\r\nAnd imported `test.ls` in `main.js`\r\n```js\r\nimport './test.ls'\r\n```\r\nLastly, I started the app with `npm run dev` and saw that `'hello world'` was in console."}}
{"actor":{"display_login":"SimulatedGREG"}}