Closed wighawag closed 4 years ago
The reason it doesn't get imported if you put the import
after Tailwind is that @import
s must be the first thing in the file.
a17t exports its CSS like any other CSS library, so this looks to me like some kind of misconfiguration in that repository with postcss-import
. Feel free to reopen if you're convinced this is an a17t error.
Until then, though,I'm going to need to close this issue. I really can't help here -- I have never worked with Svelte and Rollup in-depth, so there's not much I can do. Maybe StackOverflow could help?
After investigating further this seems indeed to be an issue with svelte itself : https://github.com/sveltejs/svelte/issues/5078
Got it. Let me know if you reach a resolution — I’d hate for Svelte users to be prevented from using a17t!
Getting this error
it might be related to #5 and how svelte process css somehow, but maybe not ?
Interestingly (which is the issue I encounter in #5) if I import a17t after tailwind directive (see https://github.com/wighawag/a17t-svelte-test) none of a17t css get included and I do not get the error
This repo : https://github.com/wighawag/a17t-svelte-test reproduce the issue