Skip to content

Add Css Files for Keyframes? #973

Answered by samijaber
nvima asked this question in Q&A
Discussion options

You must be logged in to vote

I've tried to import a css file, but the css file gets not generated. I tried to find out how they do it, but couldn't find anything. Is there a simple solution to include css animations with keyframes with mitosis?

If you want to import a CSS file, you're going to have to add the infrastructure necessary for each individual output, to process those CSS files using whatever methods you want (e.g. PostCSS plugin, CSS Modules, SASS, etc.)

Mitosis itself does not do anything to handle CSS files for you, as it only concerns itself with compiling the component file.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@samijaber
Comment options

Answer selected by nvima
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants