Skip to content

Shouldn't be able to use --dir and -o together #166

@zachary95

Description

@zachary95

Hello,

I'm experiencing some issues by executing this command:

postcss components/**/*.css --dir 'wouldBeIgnoredAnyway' -o 'styles/app.css'

It compiles every source files well but output only contains the last compiled file.

I've checked the source code, that's because css() does fs.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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions