Skip to content

feat(@angular-devkit/build-angular): tailwindcss purge #20036

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

Closed
wants to merge 1 commit into from

Conversation

vltansky
Copy link
Contributor

closes #20015

setting tailwindConfig.purge.enabled based on buildOptions.optimization.styles.minify.

Would be happy for guidance from @clydin to finish this PR if it goes in the right direction. Or feel free to close PR and implement it yourself :)

@google-cla google-cla bot added the cla: yes label Feb 11, 2021
@vltansky
Copy link
Contributor Author

I've added a check to ensure that the config doesn't export a function, so we can set the purge.enabled option.
I think it is fine, as even official Tailwind VSCode extension won't work if config exports a function (see https://github.com/ngneat/tailwind/pull/39)

@vltansky vltansky force-pushed the tailwind-purge branch 2 times, most recently from 86d7ec9 to eb49375 Compare February 16, 2021 13:30
@vltansky
Copy link
Contributor Author

vltansky commented Apr 7, 2021

I guess this PR is not relevant anymore

@vltansky vltansky closed this Apr 7, 2021
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tailwind support
1 participant