Skip to content

Enable safe flag by default in the docs. #58

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

Merged
merged 1 commit into from
Jun 19, 2018
Merged

Conversation

dtinth
Copy link
Contributor

@dtinth dtinth commented Jun 19, 2018

When I added optimize-css-assets-webpack-plugin I noticed that some animations are not working. It turned out that:

  • Default behavior of cssnano v3 is unsafe. Unused @keyframes are removed and @keyframes names are minified.
  • We use code splitting.
  • Therefore, each chunk of CSS assets is minified separately, causing name clashes. Many keyframe rules were renamed as @keyframes a

This PR makes the copy-and-paste example safer to use by default.

@NMFR NMFR merged commit d084a55 into NMFR:master Jun 19, 2018
@NMFR
Copy link
Owner

NMFR commented Jun 19, 2018

Thanks for the help :)

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.

2 participants