{"action":"opened","issue":{"url":"https://api.github.com/repos/postcss/postcss-cli/issues/8","repository_url":"https://api.github.com/repos/postcss/postcss-cli","labels_url":"https://api.github.com/repos/postcss/postcss-cli/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss-cli/issues/8/comments","events_url":"https://api.github.com/repos/postcss/postcss-cli/issues/8/events","html_url":"https://github.com/postcss/postcss-cli/issues/8","id":137945435,"number":8,"title":"--watch Issues when Editing Nested Files","user":{"login":"joshdrink","id":6960386,"avatar_url":"https://avatars.githubusercontent.com/u/6960386?v=3","gravatar_id":"","url":"https://api.github.com/users/joshdrink","html_url":"https://github.com/joshdrink","followers_url":"https://api.github.com/users/joshdrink/followers","following_url":"https://api.github.com/users/joshdrink/following{/other_user}","gists_url":"https://api.github.com/users/joshdrink/gists{/gist_id}","starred_url":"https://api.github.com/users/joshdrink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshdrink/subscriptions","organizations_url":"https://api.github.com/users/joshdrink/orgs","repos_url":"https://api.github.com/users/joshdrink/repos","events_url":"https://api.github.com/users/joshdrink/events{/privacy}","received_events_url":"https://api.github.com/users/joshdrink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-02T17:54:14Z","updated_at":"2016-03-02T17:54:14Z","closed_at":null,"body":"Hey folks! I've been running into a few issues with the --watch command not compiling when I save certain files. What's really odd about what I've observed is that it compiles files such as `post/spec/foo.css` but doesn't run on files such as `post/blocks/bar.css`. My file structure is set up as such:\r\n```\r\npackage.json\r\n/post/\r\n----style.css (has imports)\r\n----/blocks/\r\n--------bar.css (imported)\r\n----/spec/\r\n--------foo.css (imported)\r\n/css/\r\n```\r\n\r\nMy NPM script looks like this:\r\n```\r\npostcss -u postcss-import -u postcss-mixins -u postcss-for -u postcss-nested -u autoprefixer -u postcss-simple-vars -u postcss-color-function -u cssnano --local-plugins -w -c options.js -d css post/*.css\r\n```\r\n\r\nAnd I'm including the following in `options.js`:\r\n```\r\n\"postcss-import\": {\r\n    onImport: function(sources) {\r\n        global.watchCSS(sources, this.from);\r\n    }\r\n},\r\n```\r\n\r\nPerhaps this is just the result of ignorance, but I'd appreciate any insight as to why my script wouldn't be running.\r\n\r\nThanks!"}}