Replies: 1 comment 1 reply
-
Hi Julian! If you want styles to be available both for <%= vite_stylesheet_tag 'filename', media: 'all' %> If you are importing styles from JS, then pass <%= vite_javascript_tag 'admin-js-entrypoint', media: 'all' %> |
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
-
I am using the "Importing styles from JS" approach which outputs CSS in the following format
<link rel="stylesheet" href="/vite/assets/filename.css" media="screen" />
I would like my styles to be available in print mode too though. What's the best approach? Use
<%= vite_stylesheet_tag 'admin-js-entrypoint', media: 'print' %>
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions