{"action":"created","issue":{"url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/32","labels_url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/32/comments","events_url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/32/events","html_url":"https://github.com/jedwards1211/meteor-webpack-react/issues/32","id":104588550,"number":32,"title":"Script blows out entire client directory","user":{"login":"AdamBrodzinski","id":1445367,"avatar_url":"https://avatars.githubusercontent.com/u/1445367?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamBrodzinski","html_url":"https://github.com/AdamBrodzinski","followers_url":"https://api.github.com/users/AdamBrodzinski/followers","following_url":"https://api.github.com/users/AdamBrodzinski/following{/other_user}","gists_url":"https://api.github.com/users/AdamBrodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamBrodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamBrodzinski/subscriptions","organizations_url":"https://api.github.com/users/AdamBrodzinski/orgs","repos_url":"https://api.github.com/users/AdamBrodzinski/repos","events_url":"https://api.github.com/users/AdamBrodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/AdamBrodzinski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-02T23:00:29Z","updated_at":"2015-09-03T16:47:21Z","closed_at":"2015-09-03T16:43:48Z","body":"Should the webpack stuff go under another directory if it's going to blow out everything? for example `webpack/client/loadClientBundle.js` and `webpack/server/bundle.js`?\r\n\r\nI am in the middle of migrating a legacy Meteor app to webpack and just lost all of my styles and global namespaces that I put in `meteor_core/client/....`. I didn't realize it would be nuked and after I rebooted everything started throwing. I think I got most of it back with Git (kind of hairy staging area at the moment lol)"},"comment":{"url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/comments/137507938","html_url":"https://github.com/jedwards1211/meteor-webpack-react/issues/32#issuecomment-137507938","issue_url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/32","id":137507938,"user":{"login":"AdamBrodzinski","id":1445367,"avatar_url":"https://avatars.githubusercontent.com/u/1445367?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamBrodzinski","html_url":"https://github.com/AdamBrodzinski","followers_url":"https://api.github.com/users/AdamBrodzinski/followers","following_url":"https://api.github.com/users/AdamBrodzinski/following{/other_user}","gists_url":"https://api.github.com/users/AdamBrodzinski/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamBrodzinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamBrodzinski/subscriptions","organizations_url":"https://api.github.com/users/AdamBrodzinski/orgs","repos_url":"https://api.github.com/users/AdamBrodzinski/repos","events_url":"https://api.github.com/users/AdamBrodzinski/events{/privacy}","received_events_url":"https://api.github.com/users/AdamBrodzinski/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T16:47:21Z","updated_at":"2015-09-03T16:47:21Z","body":"No worries, the price to pay for the bleeding edge :laughing: \r\n\r\nFWIW, it's really not too painful migrating a large-ish app to using this webpack setup. After I nailed down a game plan it was pretty nice.\r\n\r\n- move meteor app into /old_app\r\n- expose legacy global namespaces in `meteor_core/lib`\r\n- migrate router (and get hello world working again)\r\n- move my old 'both' folder's subfolders into app/ (components, models, etc..)\r\n- export module for each new file (found this faster than doing each one that throws), using macros and grep in Vim makes this pretty painless\r\n- add eslint `*/ global Meteor, FlowRouter, etc...*/` to top for readability\r\n- resolve undefined errors as you walk the router tree\r\n\r\nStill have to figure out how to use Sass global variables with the imported Sass... currently using Meteor to compile sass and using a `../../../../../../` to get back into the app folder lol. Works :smile: \r\n\r\nNot too shabby! (almost done)\r\n"}}