Skip to content
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

Strip unused classnames #6

Open
Lutymane opened this issue Jan 6, 2023 · 1 comment
Open

Strip unused classnames #6

Lutymane opened this issue Jan 6, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Lutymane
Copy link
Member

Lutymane commented Jan 6, 2023

Since template and script processing is done first, it's easy to determine which classes are used.

@Lutymane Lutymane added the enhancement New feature or request label Jan 6, 2023
@Lutymane Lutymane added this to the 3.next milestone Jan 6, 2023
@Lutymane Lutymane self-assigned this Jan 6, 2023
@Lutymane
Copy link
Member Author

Lutymane commented Aug 1, 2023

Use config() hook to include custom PostCSS plugin, which would strip unused class selectors
https://github.com/postcss/postcss/blob/main/docs/writing-a-plugin.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant