{"action":"created","issue":{"url":"https://api.github.com/repos/transloadit/transloadit-js-client/issues/13","labels_url":"https://api.github.com/repos/transloadit/transloadit-js-client/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/transloadit/transloadit-js-client/issues/13/comments","events_url":"https://api.github.com/repos/transloadit/transloadit-js-client/issues/13/events","html_url":"https://github.com/transloadit/transloadit-js-client/issues/13","id":117363365,"number":13,"title":"Can we get `npm run preview` and `npm run watch` to play nice together?","user":{"login":"kvz","id":26752,"avatar_url":"https://avatars.githubusercontent.com/u/26752?v=3","gravatar_id":"","url":"https://api.github.com/users/kvz","html_url":"https://github.com/kvz","followers_url":"https://api.github.com/users/kvz/followers","following_url":"https://api.github.com/users/kvz/following{/other_user}","gists_url":"https://api.github.com/users/kvz/gists{/gist_id}","starred_url":"https://api.github.com/users/kvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvz/subscriptions","organizations_url":"https://api.github.com/users/kvz/orgs","repos_url":"https://api.github.com/users/kvz/repos","events_url":"https://api.github.com/users/kvz/events{/privacy}","received_events_url":"https://api.github.com/users/kvz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-17T14:17:20Z","updated_at":"2015-11-17T16:38:41Z","closed_at":null,"body":"It would be cool if `preview` would automatically trigger a `watch`, but the problem is that preview is blocking. The workaround currently is having 2 tabs open - but maybe there's something smarter we could do?"},"comment":{"url":"https://api.github.com/repos/transloadit/transloadit-js-client/issues/comments/157425411","html_url":"https://github.com/transloadit/transloadit-js-client/issues/13#issuecomment-157425411","issue_url":"https://api.github.com/repos/transloadit/transloadit-js-client/issues/13","id":157425411,"user":{"login":"kvz","id":26752,"avatar_url":"https://avatars.githubusercontent.com/u/26752?v=3","gravatar_id":"","url":"https://api.github.com/users/kvz","html_url":"https://github.com/kvz","followers_url":"https://api.github.com/users/kvz/followers","following_url":"https://api.github.com/users/kvz/following{/other_user}","gists_url":"https://api.github.com/users/kvz/gists{/gist_id}","starred_url":"https://api.github.com/users/kvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvz/subscriptions","organizations_url":"https://api.github.com/users/kvz/orgs","repos_url":"https://api.github.com/users/kvz/repos","events_url":"https://api.github.com/users/kvz/events{/privacy}","received_events_url":"https://api.github.com/users/kvz/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T16:38:41Z","updated_at":"2015-11-17T16:38:41Z","body":"> In the preview script, you can switch `npm run build` with `npm run watch`.  they both build the js/css files.  Are the watch tasks blocking the http-server when they run when using `npm run watch & http-server\r\n\r\nActually - this defeats my understanding from how I thought watch worked - but your solution works. I'll commit and resolve this"}}