mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
40 lines
920 B
Handlebars
40 lines
920 B
Handlebars
{{#if (includes addons "pwa")}}
|
|
import { VitePWA } from "vite-plugin-pwa";
|
|
{{/if}}
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "node:path";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
tailwindcss(),
|
|
TanStackRouterVite({}),
|
|
react(),
|
|
{{#if (includes addons "pwa")}}
|
|
VitePWA({
|
|
registerType: "autoUpdate",
|
|
manifest: {
|
|
name: "{{projectName}}",
|
|
short_name: "{{projectName}}",
|
|
description: "{{projectName}} - PWA Application",
|
|
theme_color: "#0c0c0c",
|
|
},
|
|
pwaAssets: {
|
|
disabled: false,
|
|
config: true,
|
|
},
|
|
devOptions: {
|
|
enabled: true,
|
|
},
|
|
}),
|
|
{{/if}}
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
});
|