From 15dffb3a0216c0eccc06b2fc449c423aba6811b2 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Thu, 21 Jul 2022 22:22:30 -0600 Subject: add register and login pages, DRY up more, add $comp, add new components --- vite.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'vite.config.js') diff --git a/vite.config.js b/vite.config.js index 87470505..bb04f608 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,8 +1,14 @@ import { sveltekit } from '@sveltejs/kit/vite'; +import path from 'path'; /** @type {import('vite').UserConfig} */ const config = { - plugins: [sveltekit()] + plugins: [sveltekit()], + resolve: { + alias: { + $comp: path.resolve('src/components/index.js') + } + } }; export default config; -- cgit v1.2.3