Rollup with style sheet #4
Unanswered
sensor-freak
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Hello @sensor-freak. <svg width="2560" height="1080" viewBox="0 0 2560 1080" xmlns="http://www.w3.org/2000/svg">
<style>
text {
font-size: 24px;
}
</style>
<text x="100" y="100">Hello</text>
</svg> I do like the idea of style files. I'll try to implement it. It might take some time (2-3 days), because I'm a little busy ATM. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hello again @sensor-freak. Feedback is greatly appreciated :D |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I tried to use this template, but with limited success:
I couldn't find a place where to put the CSS styles in. Adding my own styles to
style.css
did work. The styles where not applied to the elements in the#shadow-root
node. The cause for this might be the encapsulation borders in the DOM, or something like this.Also, I wanted to extend the template to copy the style sheet file to the build directory, but didn't find a solution for this. Extending
rollup.config.dev.js
was not successfull :-(Can you (or anyone else) help with this?
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions