refactor: improve types (#6866)

This commit is contained in:
Joshua Chen 2022-03-07 22:14:50 +08:00 committed by GitHub
parent 8e934450d8
commit a4e37c4054
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 50 deletions

View file

@ -189,8 +189,7 @@ export default function pluginPWA(
'**/*.{js,json,css,html}',
'**/*.{png,jpg,jpeg,gif,svg,ico}',
'**/*.{woff,woff2,eot,ttf,otf}',
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// @ts-expect-error: internal API?
...(injectManifest.globPatterns ?? []),
],
// those attributes are not overrideable