Build only css file
#16275
Replies: 1 comment
-
The only way i've achieved something like this is by using a
This is an example of the 'vite.build.js'
I would also like to know if there is a better way of doing this. |
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
-
Hi,
I'm running vite in a laravel project to process the css and js files, with laravel, vue, sass preprocessor plugins.
I have a particular case where I need to have a compiled css file from a sass file that will be used in an html view then it's converted to a pdf file, so I need that this css is compiled only when a production build is issued, and excluded from the hot reload/serve mode.
I've found some other discussion where someone suggest to use the rollupOptions -> external option, but in this way my file is not compiled at all from sass.
Any suggestion on how to manage this situation?
Thanks
Cheers
Mix
Beta Was this translation helpful? Give feedback.
All reactions