Neither.

This is why I was saying that LessCompiler should take an optional CSS filename.

It should have two functions; one to generate CSS only (no sourcemaps; will still need URL rewriting) and one to write a CSS file & sourcemap directly to the target folder.