docs: add Angular integration guide #759
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Angular supports Tailwind out of the box from version
11.2
angular/angular-cli#19935So the integration guide will be pretty simple.
There are two known issues (I've described them detailed in Angulars repo angular/angular-cli#20015):
process.env.NODE_ENV
toproduction
(reasonable Tailwind support angular/angular-cli#20015 (comment)), so right now purge is not working.I think this is pretty critical, so I mark this PR as a draft until this or other PR with fix will be merged.
none
, as tailwind will just try to prepend class with.dark
, so the result code will be something like.dark[_ng-content-**] .value[_ng-content-**]
instead of expected.dark .value[_ng-content-**]
The Angular team response:
I don't think that this is a critical issue, but maybe it should be mentioned in the guide? Or maybe you would want to plan some fixes on your side towards Angular?