{"action":"opened","issue":{"url":"https://api.github.com/repos/nick-thompson/iss/issues/1","repository_url":"https://api.github.com/repos/nick-thompson/iss","labels_url":"https://api.github.com/repos/nick-thompson/iss/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/nick-thompson/iss/issues/1/comments","events_url":"https://api.github.com/repos/nick-thompson/iss/issues/1/events","html_url":"https://github.com/nick-thompson/iss/issues/1","id":174840217,"number":1,"title":"Avoid appending to a single css output file","user":{"login":"nick-thompson","id":1278445,"avatar_url":"https://avatars.githubusercontent.com/u/1278445?v=3","gravatar_id":"","url":"https://api.github.com/users/nick-thompson","html_url":"https://github.com/nick-thompson","followers_url":"https://api.github.com/users/nick-thompson/followers","following_url":"https://api.github.com/users/nick-thompson/following{/other_user}","gists_url":"https://api.github.com/users/nick-thompson/gists{/gist_id}","starred_url":"https://api.github.com/users/nick-thompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nick-thompson/subscriptions","organizations_url":"https://api.github.com/users/nick-thompson/orgs","repos_url":"https://api.github.com/users/nick-thompson/repos","events_url":"https://api.github.com/users/nick-thompson/events{/privacy}","received_events_url":"https://api.github.com/users/nick-thompson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-02T20:19:33Z","updated_at":"2016-09-02T20:19:33Z","closed_at":null,"body":"Right now the transform file opens `./out/iss.css` and just appends new CSS declarations. Two successive builds which rebuild the same `cljs` file will therefore append to the same output file twice. We can't just remove the output file before each build because the cljs compiler won't rebuild files that haven't changed since the last build. Probably makes sense to generate one css file per cljs file, and just overwrite/blow away existing css output files during the jscodeshift transformation. Obviously would have to concat the css files at the end, at least for release builds. Maybe in dev mode we just keep a running list of `@import` statements in the main output file?"}}
{"actor":{"display_login":"nick-thompson"}}