Add support for appending a single css file outside#37
Add support for appending a single css file outside#37tarjei wants to merge 1 commit intonvh95:mainfrom
Conversation
✅ Deploy Preview for vitest-preview canceled.
|
|
@tarjei are you planning to merge and release this? I had to fork your project because of that |
|
@matheusslg I'm waiting for @nvh95 to take this further. I would have merged it if I could :) |
|
Hi @tarjei. Thank you very much for your efforts in helping with this. After some consideration, I think it's better to configure // setup.ts or setup.js
import { configure } from 'vitest-preview';
configure({
externalCss: [
'./styles/global.css',
'./public/index.css',
'./node_modules/@your-ui-lib/dist/styles.css',
],
});I handled it in #48, along with some other related changes. It is documented here: https://www.vitest-preview.com/guide/api/configure I also published version Thank you again 🫶 |
|
@all-contributors please add @tarjei for idea |
|
I've put up a pull request to add @tarjei! 🎉 |
|
I think your solution is even better @nvh95 ! Good job. |
Summary/ Motivation (TLDR;)
I want to load a single css file that is generated outside of the testrun.
This pr adds a --css=file option that copies in the file when starting the testserver.
Related issues
Features
Fixes