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

Transformation removes of inner calc #64

Closed
leimonio opened this issue Nov 28, 2018 · 2 comments · Fixed by #70
Closed

Transformation removes of inner calc #64

leimonio opened this issue Nov 28, 2018 · 2 comments · Fixed by #70

Comments

@leimonio
Copy link

ccsnano offers some configurable optimizations, like calc. Using webpack with optimize-css-assets-webpack-plugin for production builds results in transforming
calc(100vh - 5rem - calc(10rem + 100px)) to calc(100vh - 5rem - 10rem + 100px).

This is not happening though when disabling calc optimizations on default preset

preset: [`default`, { calc: false }]

To be more specific I'm trying to solve this issue gatsbyjs/gatsby#9858

(Opening issue as mentioned in cssnano/cssnano#657 (comment))

@leimonio leimonio changed the title Removal of inner calc Transformation removes of inner calc Nov 28, 2018
@andyjansson
Copy link
Contributor

Thanks for the report. Will try to fix so it outputs the correct transformation.

@alexander-akait
Copy link
Collaborator

alexander-akait commented Dec 5, 2018

/cc @andyjansson let's fix this issue and release new version of cssnano, thanks for helping

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 a pull request may close this issue.

3 participants