diff options
| author | secondl1ght <[email protected]> | 2022-07-22 13:32:54 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-07-22 13:32:54 -0600 |
| commit | fb35b3902f7fa6db2806fc67c37a13bbb8f9b8d8 (patch) | |
| tree | a107bb256e47bca65e87799cb9834098ed4cad0f | |
| parent | eea4d469635f94779c2ab7fd70626702567b91c2 (diff) | |
| download | coinos-ui-fb35b3902f7fa6db2806fc67c37a13bbb8f9b8d8.tar.gz coinos-ui-fb35b3902f7fa6db2806fc67c37a13bbb8f9b8d8.zip | |
add easy utils import
| -rw-r--r-- | src/components/LandingHeader.svelte | 2 | ||||
| -rw-r--r-- | vite.config.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte index 89f4014f..92558777 100644 --- a/src/components/LandingHeader.svelte +++ b/src/components/LandingHeader.svelte @@ -1,6 +1,6 @@ <script> import { goto } from '$app/navigation'; - import { scroll } from '../lib/utils'; + import { scroll } from '$utils'; import { Icon } from '$comp'; export let howItWorks; diff --git a/vite.config.js b/vite.config.js index bb04f608..ca2ac7aa 100644 --- a/vite.config.js +++ b/vite.config.js @@ -6,7 +6,8 @@ const config = { plugins: [sveltekit()], resolve: { alias: { - $comp: path.resolve('src/components/index.js') + $comp: path.resolve('src/components/index.js'), + $utils: path.resolve('src/lib/utils.js') } } }; |
