To not use stdin means to let SASS write files, which I want to avoid because it bypasses the back half of mimosa's asset handling. It has to be run via a node spawn, which, among the 3 CSS, and 4 JS, and
9ish Template compilers makes it the only one that has to run like that
because there isn't a satisfactory node compiler.
Writing over the source probably isn't a bug, fairly certain its doing what its told. It's writing the output to the file you gave it in
the filename. With stdin that is probably its default behavior. Take
stdin input and write it to file X. I would guess if you set that value to file.outputFileName, that it
would write it there and give you want you want. Mimosa won't have
anything to handle after that step though, so no CSS lint, etc. Probably no notice that it was written either. Those are all reasons to not let sass do the writing.
To deal with what can only be called a bug with SASS, I suppose I could...
- Let it write it to a temp file next to the source file
- Read the file in
- Remove the file
- Treat the read in content as the compiled source, because it is, and let mimosa continue on its way