🚀 Auto-deploy: BrainWind atualizado em 15/07/2026 11:12:30

This commit is contained in:
2026-07-15 11:12:30 +00:00
parent 0755a56702
commit 212dde0e5d
13 changed files with 1889 additions and 87 deletions
+19
View File
@@ -2,6 +2,25 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
import fs from 'fs'
try {
const svgPath = path.resolve(__dirname, '../logotipo_brainwind color original3.svg')
if (fs.existsSync(svgPath)) {
let text = fs.readFileSync(svgPath, 'utf8')
text = text.replace(/([0-9]+\.[0-9]+)/g, (m) => parseFloat(m).toFixed(1).replace(/\.0$/, ''))
text = text.replace(/\s+/g, ' ')
fs.mkdirSync(path.resolve(__dirname, 'public'), { recursive: true })
fs.writeFileSync(path.resolve(__dirname, 'public/logo_brainwind.svg'), text)
fs.writeFileSync(path.resolve(__dirname, 'public/logo_brainwind_dark.svg'), text.replace(/#06315A/gi, '#E2E8F0'))
}
const pngPath = path.resolve(__dirname, '../logotipo_brainwind color original.png')
if (fs.existsSync(pngPath)) {
fs.mkdirSync(path.resolve(__dirname, 'public'), { recursive: true })
fs.copyFileSync(pngPath, path.resolve(__dirname, 'public/logo_brainwind.png'))
}
} catch(e) {}
// https://vite.dev/config/
export default defineConfig({