aboutsummaryrefslogtreecommitdiff
path: root/vite.config.js
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-03-13 15:28:29 +0100
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-03-13 15:28:29 +0100
commitc1bc5993a694f6fd047a3881351827058042483b (patch)
tree3d64130e1e6a2f86f70981df28cf22cd535bf2b2 /vite.config.js
parentbd8e98d7e24c4dbaee7db6ec7955f7c2f6d396a6 (diff)
Use routify and GraphQL server
Diffstat (limited to 'vite.config.js')
-rw-r--r--vite.config.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/vite.config.js b/vite.config.js
index e4b56a2..f739881 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,11 +1,22 @@
// Consult https://vitejs.dev/config/ to learn about these options
import { resolve } from 'path';
+import Svelte from '@sveltejs/vite-plugin-svelte';
export default {
+ optimizeDeps: {
+ exclude: ['@roxi/routify']
+ },
+ plugins: [
+ Svelte({
+ emitCss: true
+ })
+ ],
resolve: {
alias: {
$components: resolve('src/components'),
- $config: resolve('src/config')
+ $config: resolve('src/config'),
+ $data: resolve('src/data'),
+ $stores: resolve('src/stores')
}
}
};