-
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
Combine --watch and --replace for same file causes infinite loop in console #126
Comments
@vlatkodrljin Using This is an edge-case I never thought of; we should fix this to make it error out instead of getting stuck in the infinite loop. |
I have infinite loop only when my postcss parsing is longer than 100ms. Chokidar which this CLI uses has default pool interval of 100ms, and reason for my infinite loop is because my parsing interval is out of that 100ms. We can add option for setting polling interval in this particular case, this would be the best solution if you ask me. |
@vlatkodrljin That's a hacky way around the real issue. Most users aren't using |
@RyanZim I agree that @vlatkodrljin method is a hack around the real issue. However, generally, if ---poll is an option then --interval is also an option - same as Chokidar which is used in this case. It is beneficial to have control over the polling interval if you are one of those users who uses it. I have made a pull request with this addition. |
I'm running into the same issue. Would be great to have a solution for it. |
Following CLI command causes infinite loop:
postcss public/css/styles.css -u autoprefixer -r -w --poll
When I change styles.css the watch starts command again and again in console.
Without --watch option everything is working as expected.
The text was updated successfully, but these errors were encountered: