Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unocss config for setting arrays of globs/pattern to watch with outfile name? #566

Closed
goldcoders opened this issue Jan 30, 2022 · 2 comments
Assignees

Comments

@goldcoders
Copy link

I'm using unocss cli

and for me to generate css from html i need to do this

 "unocss": "unocss \"layouts/**/**/*.html\" --watch -o ./assets/css/uno.css",

is there a way i can passed multiple instance of
paths to watch and output file name?

is there a unocss.config for this?

i dont wanna end up with my solution like this

 "uno-home": "unocss \"layouts/index.html\" --watch -o ./assets/css/home.css",
"uno-blog": "unocss \"layouts/blog/*.html\" --watch -o ./assets/css/blog.css",
"css-watch": "run-p uno-home uno-blog"

just to generate a css for home.css, blog.css

and watch 2 instance in parallel to create 2 files....

i think it would be great if we can pass on the unocss.config.ts/js

an array of path patterns to watch and paths to output the file css

I think it has good usecase for jamstacks , espcially hugo framework...

but the config now dont have that features

@stale
Copy link

stale bot commented Sep 14, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 14, 2022
@stale stale bot closed this as completed Sep 21, 2022
@sudongyuer
Copy link
Member

I am working on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants