postcss_binary and postcss_run: A new attribute additional_outputs is made available for end-users to declare what files plugins are expected to output
Node.js runner template and postcss_run: We pass the Bazel ctx.bin_dir variable to the PostCSS runner. This lets it chdir to the workspace output dir. Without doing this, the path our example supplies would need to look like (on macOS) bazel-out/darwin-fastbuild/bin/examples/additional_outputs, instead of examples/additional_outputs.
This changes:
postcss_binary
andpostcss_run
: A new attributeadditional_outputs
is made available for end-users to declare what files plugins are expected to outputpostcss_run
: We pass the Bazelctx.bin_dir
variable to the PostCSS runner. This lets it chdir to the workspace output dir. Without doing this, the path our example supplies would need to look like (on macOS)bazel-out/darwin-fastbuild/bin/examples/additional_outputs
, instead ofexamples/additional_outputs
.Fixes #4