-
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
Shouldn't be able to use --dir and -o together #166
Comments
This is bad usage as implicit concatenation should be avoided, please use |
That's poor usage; |
Ok, I see. So if you don't want this issue to be filled again, either we should trigger an error to avoid this behavior of overwritting or handle it nicely by handling multiple inputs when one output is expected, like AHMA, option two is the way to go since I've been using postcss in a react (next.js) context where stylesheet belongs to components and should not require to edit global reference for being used, added or removed. In my fork, I did a Now you choose! 😄 |
Yeah, going to trigger an error here. Implicit concatenation isn't something I want, since I can't guarantee the order the files are appended to the output will always be consistent. |
Yep, should throw. |
Hello,
I'm experiencing some issues by executing this command:
It compiles every source files well but output only contains the last compiled file.
I've checked the source code, that's because
css()
doesfs.outputFile()
which overwrite content every time one input get proceed.Yet, I did a little fix on a fork available here : https://github.com/TheSuperFly/postcss-cli/tree/fix/overwritting. I'll create a pull request when a maintainer confirms that's a real issue and not a bad usage.
The text was updated successfully, but these errors were encountered: