Browse documentation

sw

Provides the server build entry point for service worker assets.

Table of contents

Category

Value

Import

js
import { sw } from "valyrian.js/node";

Public signature

ts
(file: string, options?: SwOptions): void

Parameters

ts
file: string, options?: SwOptions

Result

ts
void

Observable effects

Transforms and writes the requested service worker resource.