Skip to content

Commit

Permalink
fix lint error for console
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 1, 2020
1 parent 30f8050 commit 3031e3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/meta/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function generateMeta (pwa) {

const favicon = join(this.options.srcDir, this.options.dir.static, 'favicon.ico')
if (options.favicon && !find(this.options.head.link, 'rel', 'shortcut icon') && existsSync(favicon)) {
// eslint-disable-next-line no-console
console.warn('You are using a low quality icon, use icon png. See https://pwa.nuxtjs.org/icon/')

this.options.head.link.push({ rel: 'shortcut icon', href: this.options.router.base + 'favicon.ico' })
Expand Down
1 change: 1 addition & 0 deletions lib/workbox/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function getOptions (pwa) {
strategyPlugins: (entry.strategyPlugins || []).map((plugin) => {
const use = pluginModules[plugin.use]
if (!use) {
// eslint-disable-next-line no-console
console.warn(`Invalid strategy plugin ${plugin.use}`)
return
}
Expand Down

0 comments on commit 3031e3e

Please sign in to comment.