UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

21 lines 806 B
import type { StxOptions } from '../types'; /** * Generate the service worker JavaScript code */ export declare function generateServiceWorker(options: StxOptions, outputDir?: string): string; /** * Get the service worker file name from config */ export declare function getServiceWorkerFileName(options: StxOptions): string; /** * Check if Workbox mode is enabled */ export declare function isWorkboxEnabled(options: StxOptions): boolean; /** * Generate service worker code (auto-selects native or Workbox based on config) * * @param options - stx configuration options * @param outputDir - optional output directory for precache manifest * @returns Generated service worker JavaScript code */ export declare function generateServiceWorkerAuto(options: StxOptions, outputDir?: string): string;