@extrawest/service-worker-generator

Utility tool to allow generate service-worker with env variables

Showing:

Popularity

Downloads/wk

41

GitHub Stars

7

Maintenance

Last Commit

2mos ago

Contributors

1

Package

Dependencies

11

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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 [path]path of build artifacts [./build]
-h, --helpOutput 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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100