Webpack Builder
Build GitHub Actions using Webpack.
Installation
bash
pnpm add -D actions-kit @actions-sdk/webpack-builder
bash
yarn add -D actions-kit @actions-sdk/webpack-builder
bash
npm install -D actions-kit @actions-sdk/webpack-builder
bash
bun install -D actions-kit @actions-sdk/webpack-builder
Set the builder
in your actions-kit.config.ts
file:
ts
import { defineConfig } from "actions-kit/config";
import webpack from "@actions-sdk/webpack-builder";
export default defineConfig({
builder: webpack({
...webpackOptions,
}),
});
Customizing Webpack
You can customize the Webpack options by passing the options directly into the webpack
function.
ts
import { defineConfig } from "actions-kit/config";
import webpack from "@actions-sdk/webpack-builder";
export default defineConfig({
builder: webpack({
...webpackOptions,
}),
});