meatloaf-config/vite.config.ts
Jaime Idolpx 10c9a13340 Refactor DevicesPage to simplify device navigation and enhance DeviceDetailOverlay integration
Enhance MediaEntry to support executable file types with appropriate icons

Revamp SearchOverlay to utilize a locate database for improved search functionality and add database management features

Update StatusPage to accommodate new DeviceDetailOverlay structure

Implement locate-db module for efficient file searching and database handling

Adjust Vite configuration to exclude sqlite-wasm from dependency optimization
2026-06-13 22:10:31 -04:00

40 lines
991 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'vite'
import path from 'path'
import tailwindcss from '@tailwindcss/vite'
import react from '@vitejs/plugin-react'
function figmaAssetResolver() {
return {
name: 'figma-asset-resolver',
resolveId(id) {
if (id.startsWith('figma:asset/')) {
const filename = id.replace('figma:asset/', '')
return path.resolve(__dirname, 'src/assets', filename)
}
},
}
}
export default defineConfig({
base: process.env.BASE_PATH || '/',
plugins: [
figmaAssetResolver(),
// The React and Tailwind plugins are both required for Make, even if
// Tailwind is not being actively used do not remove them
react(),
tailwindcss(),
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
optimizeDeps: {
exclude: ['@sqlite.org/sqlite-wasm'],
},
// File types to support raw imports. Never add .css, .tsx, or .ts files to this.
assetsInclude: ['**/*.svg', '**/*.csv'],
})