{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/react-transform-boilerplate/issues/27","labels_url":"https://api.github.com/repos/gaearon/react-transform-boilerplate/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/react-transform-boilerplate/issues/27/comments","events_url":"https://api.github.com/repos/gaearon/react-transform-boilerplate/issues/27/events","html_url":"https://github.com/gaearon/react-transform-boilerplate/issues/27","id":107870596,"number":27,"title":"Implementing devServer page rendering","user":{"login":"cidevant","id":7719146,"avatar_url":"https://avatars.githubusercontent.com/u/7719146?v=3","gravatar_id":"","url":"https://api.github.com/users/cidevant","html_url":"https://github.com/cidevant","followers_url":"https://api.github.com/users/cidevant/followers","following_url":"https://api.github.com/users/cidevant/following{/other_user}","gists_url":"https://api.github.com/users/cidevant/gists{/gist_id}","starred_url":"https://api.github.com/users/cidevant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cidevant/subscriptions","organizations_url":"https://api.github.com/users/cidevant/orgs","repos_url":"https://api.github.com/users/cidevant/repos","events_url":"https://api.github.com/users/cidevant/events{/privacy}","received_events_url":"https://api.github.com/users/cidevant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-23T08:17:03Z","updated_at":"2015-09-23T08:23:17Z","closed_at":null,"body":"Hello, I am trying to make app, where nodejs renders page on server side, and then it serves to client. \r\nThis example works great, but I am stuck with one problem. \r\n\r\nI am trying to insert my React-Routes to devServer.js and then run Router.\r\nI fail to run``` devServer.js```, because devServer.js is in vanilla JS (```node devServer.js```), BUT! my ```src/my_routes.jsx``` is written in ES6 + JSX. \r\n\r\nI dont know how to tell ```package.json``` to run start task with ```babel``` transformer.\r\n\r\n```\r\n\"scripts\": {\r\n    \"start\": \"node devServer.js\",\r\n}\r\n```\r\n\r\nI tried ```\"start\": \"babel devServer.js | node\"``` but it doesnt work."},"comment":{"url":"https://api.github.com/repos/gaearon/react-transform-boilerplate/issues/comments/142527425","html_url":"https://github.com/gaearon/react-transform-boilerplate/issues/27#issuecomment-142527425","issue_url":"https://api.github.com/repos/gaearon/react-transform-boilerplate/issues/27","id":142527425,"user":{"login":"cidevant","id":7719146,"avatar_url":"https://avatars.githubusercontent.com/u/7719146?v=3","gravatar_id":"","url":"https://api.github.com/users/cidevant","html_url":"https://github.com/cidevant","followers_url":"https://api.github.com/users/cidevant/followers","following_url":"https://api.github.com/users/cidevant/following{/other_user}","gists_url":"https://api.github.com/users/cidevant/gists{/gist_id}","starred_url":"https://api.github.com/users/cidevant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cidevant/subscriptions","organizations_url":"https://api.github.com/users/cidevant/orgs","repos_url":"https://api.github.com/users/cidevant/repos","events_url":"https://api.github.com/users/cidevant/events{/privacy}","received_events_url":"https://api.github.com/users/cidevant/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T08:23:17Z","updated_at":"2015-09-23T08:23:17Z","body":"When running ```NODE_ENV=production babel-node  devServer.js``` It fails on \r\n\r\n```\r\nSyntaxError: /Users/katz/Code/JavaScript/react-builders/webpack-react-dev/src/styles/states/home-index.scss: Unexpected token (1:0)\r\n> 1 | .HomeIndex {\r\n    | ^\r\n  2 |   background: #444;\r\n  3 |   color: white;\r\n  4 | }\r\n```\r\n\r\nSASS-LOADER doesnt work ??? How to tell babel-to use sass-loader ? Or it is WEBPACK error?"}}