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

Dead Code Elimination with webpack #174

Closed
emmatown opened this issue Jul 23, 2017 · 1 comment
Closed

Dead Code Elimination with webpack #174

emmatown opened this issue Jul 23, 2017 · 1 comment

Comments

@emmatown
Copy link
Member

emmatown commented Jul 23, 2017

We should be able to add special comments in front of css, keyframes and styled calls to make uglify think they're pure functions so they can be removed if they're not used.

https://iamakulov.com/notes/polished-webpack/

styled-components/polished#204

/*#__PURE__*/

@emmatown
Copy link
Member Author

Added in #154 762207b 50b59c2

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

No branches or pull requests

1 participant