15 lines
415 B
TypeScript
15 lines
415 B
TypeScript
// https://vitejs.dev/config/build-options.html#build-modulepreload
|
|
import 'vite/modulepreload-polyfill';
|
|
|
|
import '@/style.scss';
|
|
import { mainBoot } from './boot/main-boot';
|
|
import { subBoot } from './boot/sub-boot';
|
|
|
|
const subBootPaths = ['/auth', '/miauth', '/signup-complete'];
|
|
|
|
if (subBootPaths.some(i => location.pathname === i || location.pathname.startsWith(i + '/'))) {
|
|
subBoot();
|
|
} else {
|
|
mainBoot();
|
|
}
|