🤖 Merge PR #46445 fix(workbox-webpack-plugin): fix typo by @aicest

Co-authored-by: Fai <aicest@users.noreply.github.com>
This commit is contained in:
Fai 2020-08-02 02:02:49 +08:00 committed by GitHub
parent c52c3c9889
commit a9714077ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -427,9 +427,9 @@ export interface GenerateSWOptions extends CommonOptions {
* Those URL parameters would normally cause the cache lookup to fail, since the URL strings used as cache keys would not be expected to include them.
*
* @default [/^utm_/]
* @example ignoreUrlParametersMatching: [/./]
* @example ignoreURLParametersMatching: [/./]
*/
ignoreUrlParametersMatching?: RegExp[];
ignoreURLParametersMatching?: RegExp[];
/**
* If a [navigation request](https://developers.google.com/web/fundamentals/primers/service-workers/high-performance-loading#first_what_are_navigation_requests)

View File

@ -98,7 +98,7 @@ import webpack = require('webpack');
navigationPreload: true,
importScripts: ['push-notifications.abcd1234.js'],
// This will ignore all parameters:
ignoreUrlParametersMatching: [/./],
ignoreURLParametersMatching: [/./],
directoryIndex: 'index.html',
cacheId: 'my-app',
offlineGoogleAnalytics: true,