mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
34 lines
800 B
Handlebars
34 lines
800 B
Handlebars
{{#if (includes addons "pwa")}}
|
|
import { VitePWA } from "vite-plugin-pwa";
|
|
{{/if}}
|
|
import { reactRouter } from "@react-router/dev/vite";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { defineConfig } from "vite";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
tailwindcss(),
|
|
reactRouter(),
|
|
tsconfigPaths(),
|
|
{{#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}}
|
|
],
|
|
});
|