tailwindlabs / tailwindcss-setup-examples

674 stars 173 forks source link

Add Angular example #115

Closed ognjenjevremovic closed 3 years ago

ognjenjevremovic commented 3 years ago

Adds an example of Tailwind in Angular project with a sample template indicating that the Tailwind is working correctly.

It also provides a detailed setup process on how to add Tailwind into an existing Angular project.

ognjenjevremovic commented 3 years ago

Hey @adamwathan

I apologize if the repository is not actively maintained anymore, but I wanted to contribute to the project with an Angular example. Whenever I wanted to include TailwindCSS into an existing Angular project (or start a new one from scratch using the CLIs) I always needed to fiddle around with Webpack and Angular configurations in order to make the two work together seamlessly. I wanted to have it written up somewhere and what is a better place to be rather than the official Tailwind setup examples 🙂 .

I provided a detailed instructions on how to integrate Tailwind with Angular (latest versions of both, at the time of writing), in the MR in the README.md. Is there anything that needs changing or improving in order to have this merged to the examples repo?

Many thanks!

jits commented 3 years ago

Note that Angular v11.2 now supports TailwindCSS out of the box.

Related PR: https://github.com/tailwindlabs/tailwindcss.com/pull/759

ognjenjevremovic commented 3 years ago

Thanks for the heads-up @jits . I was unaware of this change in the Angular v11.2 🙂 . I'm closing this one then.