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
docs: add angular with vite example #3792
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for unocss ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
That's a great start, and you can refer to the other example, remove some unnecessary files, make it minimal. |
@zyyv thanks for the feedback. I have now removed all obsolete files, to have a minimal, servable project and also added the common stackblitz file (assuming this is needed for demo purposes). Anything else you want me to add? |
https://icones.js.org/collection/logos?s=angular (maybe we need to update iconify json dep) EDIT: We can also use old Angular icon, or just add the official SVG icon (if any) to use it from file system. |
@drdreo you can test your branch in SB: https://stackblitz.com/github/drdreo/unocss/tree/docs-vite-angular/examples/vite-angular EDIT: it seems there is an error in SB: no idea why getting wrong branch (unocss is missing in package.json) |
@drdreo can you run in root folder |
@userquin My apologies, i had to setup pnpm first. Now its linted properly and i factored in your feedback. |
I'll check the PR later... can you run the example working in your local? it seems there is some reference to |
Yeah, so before Angular builds, we need the referenced |
I'm going to include uno.css in |
No idea what's wrong with my previous SB link, cloned repo can be found here: https://stackblitz.com/edit/stackblitz-starters-gybg14?file=package.json,src%2Funo.css |
I've created a plain Angular project using their CLI. With ng version 17.3 it also comes with vite so it could fit into that category.
The project also demos quickly how to use the plugins to get started.
Intention
I was not finding a single reference regarding Angular in the UnoCSS documentation which lead to the conclusion Angular is not supported. This is very much the opposite and I want to help to change that perception.
It would have great benefits having at least a demo example referenced inside the official docs. This could spread awareness of this great tool amongst the ng-folk.