{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/postcss-cli/issues/44","repository_url":"https://api.github.com/repos/postcss/postcss-cli","labels_url":"https://api.github.com/repos/postcss/postcss-cli/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss-cli/issues/44/comments","events_url":"https://api.github.com/repos/postcss/postcss-cli/issues/44/events","html_url":"https://github.com/postcss/postcss-cli/issues/44","id":184688737,"number":44,"title":"recompile only run once when use output dir.","user":{"login":"X-Tender","id":1413979,"avatar_url":"https://avatars.githubusercontent.com/u/1413979?v=3","gravatar_id":"","url":"https://api.github.com/users/X-Tender","html_url":"https://github.com/X-Tender","followers_url":"https://api.github.com/users/X-Tender/followers","following_url":"https://api.github.com/users/X-Tender/following{/other_user}","gists_url":"https://api.github.com/users/X-Tender/gists{/gist_id}","starred_url":"https://api.github.com/users/X-Tender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/X-Tender/subscriptions","organizations_url":"https://api.github.com/users/X-Tender/orgs","repos_url":"https://api.github.com/users/X-Tender/repos","events_url":"https://api.github.com/users/X-Tender/events{/privacy}","received_events_url":"https://api.github.com/users/X-Tender/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-23T13:02:20Z","updated_at":"2016-10-24T20:54:24Z","closed_at":null,"body":"I have the following postcss config:\r\n\r\n```\r\n{\r\n\t\"use\": [\r\n\t\t\"autoprefixer\",\r\n\t\t\"postcss-import\",\r\n\t\t\"postcss-simple-vars\",\r\n\t\t\"postcss-extend\",\r\n\t\t\"postcss-nested\",\r\n\t\t\"postcss-mixins\",\r\n\t\t\"cssnano\"\r\n\t],\r\n\t\"input\": \"src/scss/*.css\",\r\n\t\"dir\": \"public/assets/css/\",\r\n\t\"local-plugins\": true,\r\n\t\"watch\": true,\r\n\t\"map\": \"file\",\r\n\t\"parser\" : \"postcss-scss\",\r\n\t\"autoprefixer\": {\r\n\t\t\"browsers\": [ \"Explorer >= 11\", \"Edge >= 13\", \"Firefox ESR\", \"Opera 37\", \"safari >= 9\", \"Chrome >= 50\", \"ChromeAndroid >= 47\", \"last 3 iOS versions\" ]\r\n\t},\r\n\t\"cssnano\": {\r\n\t\t\"safe\": true,\r\n\t\t\"mergeRules\": false,\r\n\t\t\"browsers\": [ \"Explorer >= 11\", \"Edge >= 13\", \"Firefox ESR\", \"Opera 37\", \"safari >= 9\", \"Chrome >= 50\", \"ChromeAndroid >= 47\", \"last 3 iOS versions\" ]\r\n\t}\r\n}\r\n```\r\n\r\nWhen I run it the files only get compiled once. When I change it from dir to one css file it works without problems.\r\n\r\n\"postcss-cli\": \"^2.6.0\",\r\nWindow10"},"comment":{"url":"https://api.github.com/repos/postcss/postcss-cli/issues/comments/255863167","html_url":"https://github.com/postcss/postcss-cli/issues/44#issuecomment-255863167","issue_url":"https://api.github.com/repos/postcss/postcss-cli/issues/44","id":255863167,"user":{"login":"RyanZim","id":17342435,"avatar_url":"https://avatars.githubusercontent.com/u/17342435?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanZim","html_url":"https://github.com/RyanZim","followers_url":"https://api.github.com/users/RyanZim/followers","following_url":"https://api.github.com/users/RyanZim/following{/other_user}","gists_url":"https://api.github.com/users/RyanZim/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanZim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanZim/subscriptions","organizations_url":"https://api.github.com/users/RyanZim/orgs","repos_url":"https://api.github.com/users/RyanZim/repos","events_url":"https://api.github.com/users/RyanZim/events{/privacy}","received_events_url":"https://api.github.com/users/RyanZim/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T20:54:24Z","updated_at":"2016-10-24T20:54:24Z","body":"OK, tracing this down a bit further, if you remove `postcss-import` from the plugin list, it works fine.\r\n\r\nI suspect `global.watchCSS`/`updateWatchedFiles()` is the issue.\r\n\r\nWill continue debugging."}}
{"actor":{"display_login":"RyanZim"}}