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

Add option for single-file CSS #41

Open
4 tasks
mattbasta opened this issue Nov 23, 2016 · 0 comments
Open
4 tasks

Add option for single-file CSS #41

mattbasta opened this issue Nov 23, 2016 · 0 comments

Comments

@mattbasta
Copy link
Owner

mattbasta commented Nov 23, 2016

Certain optimizations are possible if we know that the CSS file provided is the only one loaded on the page.

  • Remove @keyframes that are not referenced (O1 only)

  • Remove @font-face that are not referenced

  • If two @keyframes blocks are identical, replace references to the second and remove it

  • Rebase all of the z-index values in the file: http://cssnano.co/optimisations/zindex/

@mattbasta mattbasta changed the title Option to remove unreferenced blocks Option to remove unreferenced or duplicate blocks Nov 23, 2016
@mattbasta mattbasta changed the title Option to remove unreferenced or duplicate blocks Add option for single-file CSS Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant