diff --git a/not_found.html b/not_found.html new file mode 100644 index 0000000..d42e56c --- /dev/null +++ b/not_found.html @@ -0,0 +1,13 @@ + + + + + + + Floppy Drive + + +
+ + + diff --git a/src/AppNotFound.vue b/src/AppNotFound.vue new file mode 100644 index 0000000..96980f3 --- /dev/null +++ b/src/AppNotFound.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/src/components/NotFoundView.vue b/src/components/NotFoundView.vue index 6f39971..fc55fec 100644 --- a/src/components/NotFoundView.vue +++ b/src/components/NotFoundView.vue @@ -4,7 +4,7 @@

Page Not Found

I couldn't seem to find that.

-

You should probably just head back Home.

+

You should probably just head back Home.

diff --git a/src/main_not_found.ts b/src/main_not_found.ts new file mode 100644 index 0000000..abcee38 --- /dev/null +++ b/src/main_not_found.ts @@ -0,0 +1,6 @@ +import './assets/main.css' + +import { createApp } from 'vue' +import NotFound from '@/AppNotFound.vue' + +createApp(NotFound).mount('#app') diff --git a/vite.config.ts b/vite.config.ts index 036ca4d..e9a5996 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,4 +1,5 @@ import { fileURLToPath, URL } from 'node:url' +import { resolve } from 'path' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' @@ -12,4 +13,12 @@ export default defineConfig({ '@': fileURLToPath(new URL('./src', import.meta.url)), }, }, + build: { + rollupOptions: { + input: { + main: resolve(__dirname, 'index.html'), + notFound: resolve(__dirname, 'not_found.html'), + }, + }, + }, })