Closed zen14774 closed 2 years ago
The module option (-m SRC
, --module=SRC
) exists specifically to bundle 3rd-party libraries. I suggest looking into it.
Moving the CSS to a separate directory and using -m
works fine, thanks.
Out of curiosity I also tried using two [stylesheet]
passages with the same CSS and it seems to have the same limitation. That's not something I need to use or anything but I thought I'd mention it just in case.
Describe the bug. I encountered an issue when using CSS files with
@import
rules, only the ones in the first file are actually applied.According to MDN:
Tweego seems to bundle all the files wrapping them in a single
<style>
tag, which causes@import
rules in files other than the first to appear below all the CSS rules from the first file.To Reproduce: I was able to reproduce the issue using 3 files:
When opening the resulting HTML only the first title is displayed with the desired font.
Expected behavior. I'm looking for a solution that allows me to include any third party CSS files without having to modify them. I think using separate
<style>
tags for each CSS file would work.Project details.