From e45946d7af2f7450dc41ffb5ae5ab00d6c32b986 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Thu, 19 Sep 2024 18:23:38 +0200 Subject: [PATCH] Experiments on having tailwindcss in the shadow DOM --- rollup.config.js | 22 +++++++++++++--------- src/components/EasyDBDetailView.svelte | 21 ++++++++++++++++++++- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 8131e2b..b086afd 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -24,18 +24,22 @@ export default { customElement: true } }), - replace({ - values: { - "this.attachShadow({ mode: 'open' });": "" - }, - delimiters: ['', ''] - }), - postcss(), + // replace({ + // values: { + // "this.attachShadow({ mode: 'open' });": "" + // }, + // delimiters: ['', ''] + // }), + postcss( + { + extract: 'bundle.css' + } + ), resolve({ browser: true, dedupe: ['svelte', 'flowbite-svelte'] }), - commonjs(), - terser() + commonjs()//, + // terser() ] }; \ No newline at end of file diff --git a/src/components/EasyDBDetailView.svelte b/src/components/EasyDBDetailView.svelte index 62527fc..076a5b5 100644 --- a/src/components/EasyDBDetailView.svelte +++ b/src/components/EasyDBDetailView.svelte @@ -1,6 +1,7 @@ {#if !$easydbInstanceDataStore } @@ -28,5 +45,7 @@ Accessing the EasyDB instance... {:else} - +
+ +
{/if} \ No newline at end of file