1.4.0 • Published 3 years ago

@extrawest/service-worker-generator v1.4.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Maintaner Maintenance GitHub release GitHub tag

Extrawest Service Worker Generator

Utility tool to allow generate service-worker with env variables

Installation

Extrawest Service Worker Generator compatible with webpack5

# with npm
npm install --save @extrawest/service-worker-generator

# with yarn
yarn add @extrawest/service-worker-generator

Usage

$ generateSW options <file>

Options

CommandDescription
-e, --env path(./.env) Path to environment variables file
-o, --output-path pathpath of build artifacts ./build
-h, --helpOutput usage information
-m, --mode modeOutput mode (dev or build)

Example

"build-sw": "generateSW --mode=build --env ./.env ./libs/sw/firebase-messaging-sw.js --output-path ./public",

License


Created by Extrawest React.js Team

Extrawest.com, 2021