Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 4, 2024 via pnpm

workbox-webpack-plugin 5.1.1

A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache.
Package summary
Share
28
issues
1
critical severity
vulnerability
1
21
high severity
vulnerability
2
license
1
meta
18
5
moderate severity
vulnerability
1
meta
4
1
low severity
license
1
10
licenses
484
MIT
40
ISC
12
BSD-3-Clause
19
other licenses
BSD-2-Clause
10
Apache-2.0
4
(MIT OR Apache-2.0)
1
CC-BY-4.0
1
+ 3 more
Package created
12 May 2017
Version published
19 Mar 2020
Maintainers
6
Total deps
555
Direct deps
7
License
MIT

Issues

28

1 critical severity issue

critical
Recommendation: Upgrade to version 3.1.7 or later
via: workbox-build@5.1.4
Collapse
Expand

21 high severity issues

high
Recommendation: Upgrade to version 5.1.2 or later
via: webpack@4.47.0
Recommendation: None
via: workbox-build@5.1.4
Recommendation: Read and validate the license terms
via: workbox-build@5.1.4
via: workbox-build@5.1.4
via: workbox-build@5.1.4
via: workbox-build@5.1.4
via: workbox-build@5.1.4
via: workbox-build@5.1.4
via: webpack@4.47.0
via: workbox-build@5.1.4
via: workbox-build@5.1.4
via: workbox-build@5.1.4
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
via: workbox-build@5.1.4
via: workbox-build@5.1.4
via: webpack@4.47.0
via: source-map-url@0.4.1 & others
via: workbox-build@5.1.4
via: webpack@4.47.0
Collapse
Expand

5 moderate severity issues

moderate
Recommendation: Upgrade to version 3.1.10 or later
via: workbox-build@5.1.4
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
via: webpack@4.47.0
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: workbox-build@5.1.4
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
484 Packages, Including:
@babel/code-frame@7.24.2
@babel/compat-data@7.24.4
@babel/core@7.24.5
@babel/generator@7.24.5
@babel/helper-annotate-as-pure@7.22.5
@babel/helper-builder-binary-assignment-operator-visitor@7.22.15
@babel/helper-compilation-targets@7.23.6
@babel/helper-create-class-features-plugin@7.24.5
@babel/helper-create-regexp-features-plugin@7.22.15
@babel/helper-define-polyfill-provider@0.6.2
@babel/helper-environment-visitor@7.22.20
@babel/helper-function-name@7.23.0
@babel/helper-hoist-variables@7.22.5
@babel/helper-member-expression-to-functions@7.24.5
@babel/helper-module-imports@7.24.3
@babel/helper-module-transforms@7.24.5
@babel/helper-optimise-call-expression@7.22.5
@babel/helper-plugin-utils@7.24.5
@babel/helper-remap-async-to-generator@7.22.20
@babel/helper-replace-supers@7.24.1
@babel/helper-simple-access@7.24.5
@babel/helper-skip-transparent-expression-wrappers@7.22.5
@babel/helper-split-export-declaration@7.24.5
@babel/helper-string-parser@7.24.1
@babel/helper-validator-identifier@7.24.5
@babel/helper-validator-option@7.23.5
@babel/helper-wrap-function@7.24.5
@babel/helpers@7.24.5
@babel/highlight@7.24.5
@babel/parser@7.24.5
@babel/plugin-bugfix-firefox-class-in-computed-class-key@7.24.5
@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.24.1
@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.24.1
@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@7.24.1
@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2
@babel/plugin-syntax-async-generators@7.8.4
@babel/plugin-syntax-class-properties@7.12.13
@babel/plugin-syntax-class-static-block@7.14.5
@babel/plugin-syntax-dynamic-import@7.8.3
@babel/plugin-syntax-export-namespace-from@7.8.3
@babel/plugin-syntax-import-assertions@7.24.1
@babel/plugin-syntax-import-attributes@7.24.1
@babel/plugin-syntax-import-meta@7.10.4
@babel/plugin-syntax-json-strings@7.8.3
@babel/plugin-syntax-logical-assignment-operators@7.10.4
@babel/plugin-syntax-nullish-coalescing-operator@7.8.3
@babel/plugin-syntax-numeric-separator@7.10.4
@babel/plugin-syntax-object-rest-spread@7.8.3
@babel/plugin-syntax-optional-catch-binding@7.8.3
@babel/plugin-syntax-optional-chaining@7.8.3

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
40 Packages, Including:
@webassemblyjs/helper-fsm@1.9.0
anymatch@2.0.0
anymatch@3.1.3
aproba@1.2.0
browserify-sign@4.2.3
cacache@12.0.4
chownr@1.1.4
copy-concurrently@1.0.5
electron-to-chromium@1.4.756
figgy-pudding@3.5.2
fs-write-stream-atomic@1.0.10
fs.realpath@1.0.0
get-own-enumerable-property-symbols@3.0.2
glob-parent@3.1.0
glob-parent@5.1.2
glob@7.2.3
graceful-fs@4.2.11
infer-owner@1.0.4
inflight@1.0.6
inherits@2.0.3
inherits@2.0.4
lru-cache@5.1.1
minimalistic-assert@1.0.1
minimatch@3.1.2
move-concurrently@1.0.1
once@1.4.0
parse-asn1@5.1.7
picocolors@1.0.0
promise-inflight@1.0.1
remove-trailing-separator@1.1.0
rimraf@2.7.1
run-queue@1.0.3
semver@5.7.2
semver@6.3.1
ssri@6.0.2
unique-filename@1.1.1
unique-slug@2.0.2
wrappy@1.0.2
y18n@4.0.3
yallist@3.1.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
12 Packages, Including:
@hapi/address@2.1.4
@hapi/bourne@1.3.2
@hapi/hoek@8.5.1
@hapi/joi@15.1.1
@hapi/topo@3.1.6
@xtuc/ieee754@1.2.0
ieee754@1.2.1
qs@6.12.1
serialize-javascript@4.0.0
source-map@0.5.7
source-map@0.6.1
source-map@0.7.4

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
10 Packages, Including:
eslint-scope@4.0.3
esrecurse@4.3.0
estraverse@4.3.0
estraverse@5.3.0
esutils@2.0.3
mississippi@3.0.0
regjsparser@0.9.1
stringify-object@3.3.0
terser@4.8.1
uri-js@4.4.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
4 Packages, Including:
@ampproject/remapping@2.3.0
@surma/rollup-plugin-off-main-thread@1.4.2
@xtuc/long@4.2.2
ejs@2.7.4

(MIT OR Apache-2.0)

Permissive
1 Packages, Including:
atob@2.1.2

Creative Commons Attribution 4.0 International

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
caniuse-lite@1.0.30001615

(MIT AND Zlib)

Permissive
1 Packages, Including:
pako@1.0.11

(MIT AND BSD-3-Clause)

Permissive
1 Packages, Including:
sha.js@2.4.11

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@0.3.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

7
All Dependencies CSV
β“˜ This is a list of workbox-webpack-plugin 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@babel/runtime7.24.5256.12 kBMIT
prod
fast-json-stable-stringify2.1.06.17 kBMIT
prod
source-map-url0.4.13.31 kBMIT
prod
1
upath1.2.07.8 kBMIT
prod optional
webpack-sources1.4.39.39 kBMIT
prod
webpack4.47.0304.77 kBMIT
prod peer
8
4
workbox-build5.1.430.46 kBMIT
prod
1
14
1
1

Visualizations

Frequently Asked Questions

What does workbox-webpack-plugin do?

Workbox-Webpack-Plugin is a useful tool specially designed to enhance your Webpack build process. It assists you in generating a manifest comprising local files that the workbox-sw should precache. This precious feature contributes to significantly improving your web application's performance by enabling specific resources to be cached for offline usage. This in-built functionality proves to be pivotal in delivering an optimal offline-first experience for users by ensuring that key resources are reliably available.

How do you use workbox-webpack-plugin?

To utilize the Workbox-Webpack-Plugin, you need to incorporate it into your Webpack configuration file. First off, install it using npm by running npm install workbox-webpack-plugin --save-dev. Then, import it into your Webpack configuration file using const WorkboxPlugin = require('workbox-webpack-plugin');. After importing, add it to the plugins array of your Webpack configuration like below:

module.exports = {
  // Other webpack configurations...
  plugins: [
    new WorkboxPlugin.GenerateSW({
      // Do something with `swSrc`
    })
  ]
};

This will generate a service worker file using workbox. Remember to modify the configuration as per your requirements to ensure the generated service worker behaves as intended. You can also use WorkboxPlugin.InjectManifest if you need more control over the service worker file.

module.exports = {
  // Other webpack configurations...
  plugins: [
    new WorkboxPlugin.InjectManifest({
      swSrc: './src/sw.js'
    })
  ]
};

This will inject the precache manifest into the provided service worker source file. Ensure to replace './src/sw.js' with your service worker file path.

Where are the workbox-webpack-plugin docs?

If you seek comprehensive information about Workbox-Webpack-Plugin, you can refer to the official module documentation which is available at Workbox-Webpack-Plugin Docs. This extensive documentation provides thorough descriptions about the various functionalities, configuration options, and usage examples related to the plugin. Enjoy enhancing your Webpack-based projects with this amazing tool!