Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 25 Jul 23:56
· 1 commit to main since this release
v1.0.0
afbfffe

Using Bzlmod with Bazel 6

  1. Enable with common --enable_bzlmod in .bazelrc.
  2. Add to your MODULE.bazel file:
bazel_dep(name = "gzgz_rules_sass", version = "1.0.0")

sass = use_extension("@gzgz_rules_sass//sass:extensions.bzl", "sass")

sass.toolchain(sass_version = "1.63.6") # Or any version you like
use_repo(sass, "sass_toolchains")

register_toolchains("@sass_toolchains//:all")

Using WORKSPACE

Paste this snippet into your file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "gzgz_rules_sass",
    sha256 = "77d5333b66b419d64c54b1dac56b41864f457c04103f66bd7922db450ee9dfdf",
    strip_prefix = "gzgz_rules_sass-1.0.0",
    url = "https://github.com/GZGavinZhao/gzgz_rules_sass/releases/download/v1.0.0/gzgz_rules_sass-v1.0.0.tar.gz",
)

######################
# gzgz_rules_sass setup #
######################
# Fetches the dependencies for gzgz_rules_sass.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@gzgz_rules_sass//sass:repositories.bzl", "gzgz_rules_sass_dependencies", "sass_register_toolchains")

gzgz_rules_sass_dependencies()

sass_register_toolchains(
    name = "dart_sass",
    sass_version = "1.63.6",  # Or any other version you like
)

Full Changelog: https://github.com/GZGavinZhao/gzgz_rules_sass/commits/v1.0.0