Starting a new template using Svelte, SvelteKit, Tailwind, and Skeleton.

This commit is contained in:
Scott Idem
2024-02-15 09:49:35 -05:00
parent ccbb783378
commit 17d99d080c
58 changed files with 3894 additions and 9127 deletions

View File

@@ -1,67 +1,21 @@
import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
// import adapter from '@sveltejs/adapter-static';
// import adapter from '@sveltejs/adapter-node';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://svelte.dev/docs#compile-time-svelte-preprocess
// for more information about preprocessors
preprocess: vitePreprocess(),
// Disable accessibility warnings
onwarn: (warning, handler) => {
// console.log('HERE');
if (warning.code.includes("a11y")) return;
// if (warning.code === 'a11y-distracting-elements') return;
handler(warning);
},
// kit: {
// adapter: adapter({
// // default options are shown. On some platforms
// // these options are set automatically — see below
// // pages: 'build',
// // assets: 'build',
// // fallback: undefined,
// // precompress: false,
// // strict: true,
// // output directory:
// // target: 'dist_x',
// // default options are shown
// out: 'build_x',
// precompress: false,
// envPrefix: ''
// })
// }
}
export default config;
// import adapter from '@sveltejs/adapter-auto';
// /** @type {import('@sveltejs/kit').Config} */
// const config = {
// // Consult https://svelte.dev/docs#compile-time-svelte-preprocess
// // for more information about preprocessors
// preprocess: vitePreprocess(),
// // Disable accessibility warnings
// onwarn: (warning, handler) => {
// console.log('HERE');
// if (warning.code.includes("a11y")) return;
// handler(warning);
// },
// kit: {
// adapter: adapter()
// }
// };
// export default config;
extensions: ['.svelte'],
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: [vitePreprocess()],
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;