bazelbuild / rules_postcss

PostCSS rules for Bazel
Apache License 2.0
10 stars 13 forks source link

autoprefixer pointing to internal rule label #39

Closed joprice closed 4 years ago

joprice commented 4 years ago

I'm getting the error below when trying to use autoprefixer. I assume it's because the line here https://github.com/bazelbuild/rules_postcss/blob/master/internal/autoprefixer/build_defs.bzl#L41 doesn't include the workspace name.

 no such package 'internal/autoprefixer': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.

Defining a local binary works:

postcss_binary(
    name = "autoprefixer",
    src = ":raw_styles",
    output_name = "styles.css",
    plugins = {
        "@build_bazel_rules_postcss//internal/autoprefixer": "",
    },
)