diff --git a/src/main.tsx b/src/main.tsx index e1161d82..6a3c7532 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -2,8 +2,20 @@ import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import App from '@/App.tsx' import '@/i18n/config' +import { JAM_REPO_URL } from './constants/jam' import './index.css' +console.debug( + `%c/${'*'.repeat(42)} +* Thanks for testing! Please report anything that looks off. +* Found a bug? Open an issue at ${JAM_REPO_URL}/issues/new?labels=bug&template=bug_report.md +* +* This message should be dropped from preview/prod builds. +* Use the above link and open a bug report if you see this message outside development builds. +${'*'.repeat(42)}/`, + 'color:#e2b86a;font-size:14px;', +) + createRoot(document.querySelector('#root')!).render( diff --git a/vite.config.ts b/vite.config.ts index 0dad02fe..56362412 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -78,6 +78,18 @@ export default defineConfig((config): UserConfig => { '@': path.resolve(import.meta.dirname, './src'), }, }, + build: { + rolldownOptions: { + output: { + minify: { + compress: { + dropConsole: buildOrPreview, + dropDebugger: buildOrPreview, + }, + }, + }, + }, + }, server: { ...server, open: true,