Replies: 4 comments 5 replies
-
what's missing for that? |
Beta Was this translation helpful? Give feedback.
-
Some guide like https://nextjs.org/docs/app/building-your-application/configuring/progressive-web-apps would be helpful. |
Beta Was this translation helpful? Give feedback.
-
TanStack Start current build process is not compatible with vite-pwa-plugin as I understand. After adding it into export default defineConfig({
vite: {
plugins: [
tsConfigPaths({
projects: ['./tsconfig.json'],
}),
VitePWA({
registerType: 'autoUpdate',
devOptions: {
enabled: true
},
manifest: {
name: 'My Awesome App',
short_name: 'MyApp',
description: 'My Awesome App description',
theme_color: '#ffffff'
}
})
],
},
}) |
Beta Was this translation helpful? Give feedback.
-
Although using the tanstackStart({
spa: {
enabled: true,
},
target: "node-server",
react: {
babel: {
plugins: [["babel-plugin-react-compiler", { target: "19" }]],
},
},
}),
// other config
build: {
sourcemap: true,
rollupOptions: {
input: {
sw: "./src/sw.ts",
},
},
}, But it seems that then I'm getting a bunch of errors:
Or using lib: build: {
sourcemap: true,
lib: {
name: "sw",
formats: ["es"],
entry: {
sw: resolve(__dirname, "src/sw.ts"),
},
},
}, In both cases, it looks like there's not even an sw.js in the output 🤔 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Setup PWA, with https://vite-pwa-org.netlify.app/
Beta Was this translation helpful? Give feedback.
All reactions