Skip to content

Commit

Permalink
fix: configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jouwdan committed Aug 8, 2023
1 parent 29a6373 commit 2335e79
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
18 changes: 9 additions & 9 deletions apps/web/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import adapter from '@sveltejs/adapter-netlify';
import { vitePreprocess } from '@sveltejs/kit/vite';
import preprocess from 'svelte-preprocess';

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: vitePreprocess(),
preprocess: [
preprocess({
postcss: true
})
],

vitePlugin: {
inspector: true
},
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
}
};

export default config;
8 changes: 5 additions & 3 deletions apps/web/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()]
});
};

export default config;

0 comments on commit 2335e79

Please sign in to comment.