mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-10 21:15:04 +10:00
5cd16a62d9
* refactor to @base-ui/react * fix all * fixes to accordion * more updates * switch to chat/completions api from openai * update version to v5.0.12
178 lines
4.0 KiB
TypeScript
178 lines
4.0 KiB
TypeScript
import { lingui } from "@lingui/vite-plugin";
|
|
import babel from "@rolldown/plugin-babel";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
import viteReact from "@vitejs/plugin-react";
|
|
import { nitro } from "nitro/vite";
|
|
import { defineConfig } from "vite";
|
|
import { VitePWA } from "vite-plugin-pwa";
|
|
|
|
const config = defineConfig({
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
|
|
},
|
|
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
|
|
build: {
|
|
sourcemap: true,
|
|
chunkSizeWarningLimit: 10 * 1024, // 10mb
|
|
},
|
|
|
|
server: {
|
|
host: true,
|
|
port: 3000,
|
|
strictPort: true,
|
|
allowedHosts: true,
|
|
hmr: {
|
|
host: "localhost",
|
|
port: 3000,
|
|
},
|
|
},
|
|
|
|
plugins: [
|
|
lingui(),
|
|
tailwindcss(),
|
|
nitro({ plugins: ["plugins/1.migrate.ts"] }),
|
|
babel({ plugins: ["@lingui/babel-plugin-lingui-macro"] }),
|
|
tanstackStart({ router: { semicolons: true, quoteStyle: "double" } }),
|
|
viteReact(),
|
|
VitePWA({
|
|
outDir: "public",
|
|
useCredentials: true,
|
|
injectRegister: false,
|
|
includeAssets: ["**/*"],
|
|
registerType: "autoUpdate",
|
|
workbox: {
|
|
skipWaiting: true,
|
|
clientsClaim: true,
|
|
globPatterns: ["**/*"],
|
|
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024, // 10mb
|
|
navigateFallback: null, // Disable navigation fallback for SSR
|
|
},
|
|
manifest: {
|
|
name: "Reactive Resume",
|
|
short_name: "Reactive Resume",
|
|
description: "A free and open-source resume builder.",
|
|
id: "/?source=pwa",
|
|
start_url: "/?source=pwa",
|
|
display: "standalone",
|
|
orientation: "portrait",
|
|
theme_color: "#09090B",
|
|
background_color: "#09090B",
|
|
icons: [
|
|
{
|
|
src: "favicon.ico",
|
|
sizes: "128x128",
|
|
type: "image/x-icon",
|
|
},
|
|
{
|
|
src: "pwa-64x64.png",
|
|
sizes: "64x64",
|
|
type: "image/png",
|
|
},
|
|
{
|
|
src: "pwa-192x192.png",
|
|
sizes: "192x192",
|
|
type: "image/png",
|
|
},
|
|
{
|
|
src: "pwa-512x512.png",
|
|
sizes: "512x512",
|
|
type: "image/png",
|
|
purpose: "any",
|
|
},
|
|
{
|
|
src: "maskable-icon-512x512.png",
|
|
sizes: "512x512",
|
|
type: "image/png",
|
|
purpose: "maskable",
|
|
},
|
|
],
|
|
screenshots: [
|
|
{
|
|
src: "screenshots/web/1-landing-page.webp",
|
|
sizes: "1920x1080 any",
|
|
type: "image/webp",
|
|
form_factor: "wide",
|
|
label: "Landing Page",
|
|
},
|
|
{
|
|
src: "screenshots/web/2-resume-dashboard.webp",
|
|
sizes: "1920x1080 any",
|
|
type: "image/webp",
|
|
form_factor: "wide",
|
|
label: "Resume Dashboard",
|
|
},
|
|
{
|
|
src: "screenshots/web/3-builder-screen.webp",
|
|
sizes: "1920x1080 any",
|
|
type: "image/webp",
|
|
form_factor: "wide",
|
|
label: "Builder Screen",
|
|
},
|
|
{
|
|
src: "screenshots/web/4-template-gallery.webp",
|
|
sizes: "1920x1080 any",
|
|
type: "image/webp",
|
|
form_factor: "wide",
|
|
label: "Template Gallery",
|
|
},
|
|
{
|
|
src: "screenshots/mobile/1-landing-page.webp",
|
|
sizes: "1284x2778 any",
|
|
type: "image/webp",
|
|
form_factor: "narrow",
|
|
label: "Landing Page",
|
|
},
|
|
{
|
|
src: "screenshots/mobile/2-resume-dashboard.webp",
|
|
sizes: "1284x2778 any",
|
|
type: "image/webp",
|
|
form_factor: "narrow",
|
|
label: "Resume Dashboard",
|
|
},
|
|
{
|
|
src: "screenshots/mobile/3-builder-screen.webp",
|
|
sizes: "1284x2778 any",
|
|
type: "image/webp",
|
|
form_factor: "narrow",
|
|
label: "Builder Screen",
|
|
},
|
|
{
|
|
src: "screenshots/mobile/4-template-gallery.webp",
|
|
sizes: "1284x2778 any",
|
|
type: "image/webp",
|
|
form_factor: "narrow",
|
|
label: "Template Gallery",
|
|
},
|
|
],
|
|
categories: [
|
|
"ai",
|
|
"builder",
|
|
"business",
|
|
"career",
|
|
"cv",
|
|
"editor",
|
|
"free",
|
|
"generator",
|
|
"job-search",
|
|
"multilingual",
|
|
"open-source",
|
|
"privacy",
|
|
"productivity",
|
|
"resume",
|
|
"self-hosted",
|
|
"templates",
|
|
"utilities",
|
|
"writing",
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
});
|
|
|
|
export default config;
|