/webpack-bazel

🛠️ A minimal Webpack project built with Bazel

Primary LanguagePython

Webpack rules for Bazel

Bazel automates building and testing software. It scales to very large multi-language projects. This project extends Bazel with build rules for Webpack.

Requirements

Rules reference

Bundles

BUILD.bazel:

webpack_bundle(
    name = "bundle",
    config = "//:webpack.config.js",
    srcs = glob(["src/**"]),
    deps = [
        "//:ps-lib",
        "@psc-package//:prelude",
        "@npm//hello-world-npm",
    ],
    plugins = [
        "@npm//html-webpack-plugin",
    ],
    loaders = [
        "@npm//purs-loader",
        "@npm//purescript-psa",
    ],
    tools = [
        "@nixpkgs_purescript//:bin",
    ],
)