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

minify css and remove unused styles #729

Merged
merged 2 commits into from
Jul 29, 2017
Merged

minify css and remove unused styles #729

merged 2 commits into from
Jul 29, 2017

Conversation

Rich-Harris
Copy link
Member

Closes #697.

With this PR, Svelte removes unused styles (only works if cascade is false, the soon-to-be-default). It will also remove unnecessary whitespace, saving a few bytes.

It doesn't (yet! maybe one day) do more sophisticated forms of minification — the goal isn't so much to render the most compact CSS possible (which could be done in a pre- or post-processing step), but rather to take CSS minification off the list of things that most people need to worry about.

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

Successfully merging this pull request may close these issues.

1 participant