tweaking the build process to make CSS cascade properly with in the prod environment

This commit is contained in:
Dave Lane 2024-11-28 15:22:46 +13:00
parent de841dfd78
commit 2ccaf070b6
2 changed files with 5 additions and 5 deletions

View file

@ -1,9 +1,9 @@
<script> <script>
import tabler from 'yesvelte/css/tabler.min.css?url'; import tabler from 'yesvelte/css/tabler.min.css?url';
import daisyui from 'yesvelte/css/daisyui.min.css?url';
import { Navbar, NavbarItem } from 'yesvelte';
import '../app.css'; import '../app.css';
import { Navbar, NavbarItem } from 'yesvelte';
let theme = 'tabler'; let theme = 'tabler';
</script> </script>

View file

@ -1,6 +1,6 @@
//import adapter from '@sveltejs/adapter-auto'; //import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-node'; // ref https://medium.com/@loic.joachim/dockerize-sveltekit-with-node-adapter-62c5dc6fc15a import adapter from '@sveltejs/adapter-node'; // ref https://medium.com/@loic.joachim/dockerize-sveltekit-with-node-adapter-62c5dc6fc15a
import sveltePreprocess from 'svelte-preprocess'; //import sveltePreprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
@ -9,8 +9,8 @@ const config = {
// If your environment is not supported, or you settled on a specific environment, switch out the adapter. // 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. // See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter() adapter: adapter()
}, } //,
preprocess: sveltePreprocess() //preprocess: sveltePreprocess()
}; };
export default config; export default config;