aboutsummaryrefslogtreecommitdiff
path: root/vite.config.ts
diff options
context:
space:
mode:
authorIndrajith K L2024-02-05 04:15:02 +0530
committerIndrajith K L2024-02-05 04:15:02 +0530
commitf05a472585b2506da21aed71f0252b2d4c04a221 (patch)
tree4f65a3801f29250a049f3cc5cd2ac9c0a41d78f9 /vite.config.ts
downloadreact-hooks-training-f05a472585b2506da21aed71f0252b2d4c04a221.tar.gz
react-hooks-training-f05a472585b2506da21aed71f0252b2d4c04a221.tar.bz2
react-hooks-training-f05a472585b2506da21aed71f0252b2d4c04a221.zip
React Slides
* Adds useState * State * useEffect * Side Effects
Diffstat (limited to 'vite.config.ts')
-rw-r--r--vite.config.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/vite.config.ts b/vite.config.ts
new file mode 100644
index 0000000..023ffc1
--- /dev/null
+++ b/vite.config.ts
@@ -0,0 +1,19 @@
+import { defineConfig } from 'vite'
+import { svelte } from '@sveltejs/vite-plugin-svelte'
+import path from 'path'
+
+// https://vitejs.dev/config/
+export default defineConfig({
+ plugins: [svelte()],
+ resolve: {
+ alias: {
+ '@config': path.resolve(__dirname, './src/config.ts'),
+ '@components': path.resolve(__dirname, './src/lib/components/index.ts'),
+ '@motion': path.resolve(__dirname, './src/lib/motion/index.ts'),
+ '@languages': path.resolve(__dirname, './src/lib/languages/index.ts'),
+ '@lib': path.resolve(__dirname, './src/lib'),
+ '@stores': path.resolve(__dirname, './src/lib/stores'),
+ '@styles': path.resolve(__dirname, './src/lib/styles'),
+ },
+ },
+})