You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to ascertain the environment for running VitePluginPwa so that we don't end up caching in development, the { command } comes in very handy for that, however I can't seem to get any such option other than the { router }
Vite Docs
app.config.ts
import{defineConfig}from"@solidjs/start/config";import{VitePWA}from'vite-plugin-pwa';importautoprefixerfrom'autoprefixer';exportdefaultdefineConfig({vite: ({ command })=>({plugins: [VitePWA({manifest: {"short_name": "Ytify","name": "Listen with ytify","description": "32kb/s to 128kb/s youtube audio streaming website. Copy a youtube video link and listen to it as an audio totally free.","icons": [{"src": "logo192.png","type": "image/png","sizes": "192x192","purpose": "any maskable"},{"src": "logo512.png","type": "image/png","sizes": "512x512","purpose": "any maskable"}],"start_url": "/","display": "standalone","theme_color": "white","background_color": "white","share_target": {"action": "/","method": "GET","params": {"title": "title","text": "text","url": "url"}}},disable: command!=='build',includeAssets: ['*.woff2','ytify_thumbnail_min.webp']})],css: {postcss: {plugins: [autoprefixer()]}}})});
Error
Property 'command' does not exist on type '{ router: "server" | "client" | "server-function"; }'. (2339)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need to ascertain the environment for running VitePluginPwa so that we don't end up caching in development, the
{ command }
comes in very handy for that, however I can't seem to get any such option other than the{ router }
Vite Docs
app.config.ts
Error
Beta Was this translation helpful? Give feedback.
All reactions