mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-22 20:26:50 +00:00
Format
This commit is contained in:
@@ -1,51 +1,55 @@
|
||||
/// <reference types="vitest" />
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
// Import path module for resolving file paths
|
||||
import fixReactVirtualized from 'esbuild-plugin-react-virtualized'
|
||||
import wasm from 'vite-plugin-wasm';
|
||||
import topLevelAwait from 'vite-plugin-top-level-await';
|
||||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
import fixReactVirtualized from "esbuild-plugin-react-virtualized";
|
||||
import wasm from "vite-plugin-wasm";
|
||||
import topLevelAwait from "vite-plugin-top-level-await";
|
||||
import { VitePWA } from "vite-plugin-pwa";
|
||||
|
||||
export default defineConfig({
|
||||
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
environment: "jsdom",
|
||||
globals: true,
|
||||
setupFiles: ['./src/test/setup.ts']
|
||||
setupFiles: ["./src/test/setup.ts"],
|
||||
},
|
||||
assetsInclude: ['**/*.wasm'],
|
||||
plugins: [react(), wasm(), topLevelAwait(), VitePWA({
|
||||
registerType: 'prompt',
|
||||
manifest: {
|
||||
name: 'Qortal Hub',
|
||||
short_name: 'Hub',
|
||||
description: 'Your easy access to the Qortal blockchain',
|
||||
start_url: '/',
|
||||
display: 'standalone',
|
||||
theme_color: '#ffffff',
|
||||
background_color: '#ffffff',
|
||||
icons: [
|
||||
{
|
||||
src: '/qortal192.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png',
|
||||
},
|
||||
{
|
||||
src: '/qortal.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
},
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, // 5MB limit
|
||||
disableDevLogs: true, // Suppresses logs in development
|
||||
},
|
||||
})],
|
||||
assetsInclude: ["**/*.wasm"],
|
||||
plugins: [
|
||||
react(),
|
||||
wasm(),
|
||||
topLevelAwait(),
|
||||
VitePWA({
|
||||
registerType: "prompt",
|
||||
manifest: {
|
||||
name: "Qortal Hub",
|
||||
short_name: "Hub",
|
||||
description: "Your easy access to the Qortal blockchain",
|
||||
start_url: "/",
|
||||
display: "standalone",
|
||||
theme_color: "#ffffff",
|
||||
background_color: "#ffffff",
|
||||
icons: [
|
||||
{
|
||||
src: "/qortal192.png",
|
||||
sizes: "192x192",
|
||||
type: "image/png",
|
||||
},
|
||||
{
|
||||
src: "/qortal.png",
|
||||
sizes: "512x512",
|
||||
type: "image/png",
|
||||
},
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, // 5MB limit
|
||||
disableDevLogs: true, // Suppresses logs in development
|
||||
},
|
||||
}),
|
||||
],
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
plugins: [fixReactVirtualized],
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user