tailwind-bundle icon indicating copy to clipboard operation
tailwind-bundle copied to clipboard

Fail when using relative URL

Open lyrixx opened this issue 5 months ago • 1 comments

Hello,

Thanks for this bundle, but I have many issues

Custom css not used at all

@tailwind base;
@tailwind components;
@tailwind utilities;

@import './test.css';

test.css is not used at all

Relative URL does not work

@import './base/font.css';

and

@font-face {
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 400 700;
    src: url('../../fonts/noto-serif-vf.woff2') format('woff2-variations');
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400 700;
    src: url('../../fonts/open-sans-vf.woff2') format('woff2-variations');
    font-display: swap;
}

It produces a 500. I also tested with ../ instead of ../../, but I got another error


I pushed a repository, with both reproducer. Just adapt app1.css to app2.css in the configurations

lyrixx avatar Jun 12 '25 10:06 lyrixx

Hmm, I don't think there's anything we can do in the bundle about this. I think it would be more asset-mapper or maybe tailwind itself?

kbond avatar Jun 27 '25 18:06 kbond