tailwindcss-setup-examples
tailwindcss-setup-examples copied to clipboard
Add Angular
Nice! Just did this myself with Angular 8 before I saw your PR. Came down to the same thing actually 👍
Ping @adamwathan @tunecino
Works also great with Angular 9 👍
could we merge this PR?
Should this also update the setup-examples/README.md
to mention the example for Angular?
Keep in mind that Angular is already at v10 but the config setup still applies :)
This works for Angular 10, using version ~~10.0.0-beta.1
~~ 10.0.0
of @angular-builders/custom-webpack
.
Edit: v10.0.0 was just released.
Quick notice: There is a package that helps setting up Tailwind + Angular very quickly called ng-tailwind. Would be good to put a note about it at the start :)
Quick notice: There is a package that helps setting up Tailwind + Angular very quickly called ng-tailwind. Would be good to put a note about it at the start :)
⚠️ WARNING
you should use this Schematics https://github.com/ngneat/tailwind. Up to date with the latest postcss-loader (v4.x.x)
or add postcssOptions
in webpack.config.js