Skip to content

extrawest/service-worker-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Command Description
-e, --env [path] (./.env) Path to environment variables file
-o, --output-path [path] path of build artifacts [./build]
-h, --help Output usage information
-m, --mode [mode] Output 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

About

Utility tool to allow generate service-worker with env variables

Resources

License

Stars

Watchers

Forks

Packages

No packages published