mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-28 15:31:02 +00:00
33 lines
685 B
TypeScript
33 lines
685 B
TypeScript
import path from "path";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { defineConfig } from "vite";
|
|
import { VitePWA } from "vite-plugin-pwa";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
const mb = 1024 ** 2;
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
VitePWA({
|
|
registerType: "autoUpdate",
|
|
manifest: {
|
|
theme_color: "#0279E8",
|
|
},
|
|
workbox: {
|
|
maximumFileSizeToCacheInBytes: 100 * mb,
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
define: {
|
|
"import.meta.env.VITE_BUILD_TIME": JSON.stringify(Date.now()),
|
|
},
|
|
});
|