-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watch config file #26
Comments
@pirxpilot, @watilde bump. I'm currently wrapping postcss with chokidar-cli as a workaround. |
@pirxpilot @watilde @ai bump, bump, bump. |
Oops so sorry for my late response. Let me check it. |
Thanks for the feature request. I agreed with this! I will try to create a patch and also let me keep the thing it's still |
@watilde Currently there's no good way to do this with yargs. Let's put this on hold until yargs/yargs#585 is resolved. |
We will be supporting the common config in v3, which should allow us to do this, so adding this issue to the v3 milestone. |
@RyanZim Seems to be trickier then I thought 😛 , do you have started anything in this regard already? |
@michael-ciniawsky I'll hit this asap. |
@RyanZim I played around with declaring a variable in global scope assigning the |
Don't worry, I'll get it. |
Currently when the
-w
&-c
options are specified, postcss rebuilds the css files only when the input file changes (and does not reload the config file). If you change the config file, you need to cancel the process and re-run it.This is irritating for me since I call postcss from an npm script that starts a dev server, my browser, etc. This script takes a bit of time to start or cancel, so I waste a lot of time when changing the config file. ⌛
I think that when both the the
-w
&-c
options are specified, postcss should reload the config and rebuild the css when a change is detected in the config file.I'm not sure if I can submit a PR or not. (I'm extra busy right now)
The text was updated successfully, but these errors were encountered: