vite-pwa / vite-plugin-pwa

Zero-config PWA for Vite

Home Page:https://vite-pwa-org.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore manifest creation

Fleeck opened this issue · comments

Hi, I generate manifest.json dynamically hence I don't need it in the build. Is there an option to ignore it? Thanks.

A snippet of manifest generation for understanding:

// fetch data, then fetch manifest
const link = document.createElement('link')
link.rel = 'manifest'
link.href = `${import.meta.env.VITE_API_URL}/wb/manifest/json/${store.state.guideToken}/`
document.querySelector('head').appendChild(link)

@Fleeck just configure manifest: false

Thanks, it works!