Replies: 1 comment
-
Hi Dom! By default, If you are using If you'd like to have them rolled into one CSS file, you'd need to import the other stylesheets from your JS entrypoints, and skip the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've currently got
vite_rails
setup with the@vitejs/plugin-vue
to handle some vue SFCs (I just load the sfcs in a page-specific js file).My main styles are all imported via
app/javascript/entrypoints/application.scss
and I have that in with avite_stylesheet_tag 'application.scss'
. However when the assets get precompiled, all the vue-related styles from components get exported into style.css.Should I just add another
vite_stylesheet_tag 'style'
only for non-dev environments or is there another way to get them rolled into one CSS output file?Beta Was this translation helpful? Give feedback.
All reactions