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
-webkit prefix missing after css minification #670
Comments
I came here with the same issue but with -moz- prefixes removed. |
@jibhaine @jakubpawlowicz this is not resolving my issue. I've passed in other cleanCSS params too to ensure they are getting passed in and I can confirm they are being passed in correctly.
|
So reopening it. Could you please share a bigger excerpt from your CSS file in the first place and make sure you run the latest clean-css with |
Using clean-css version 3.3.6 Here is larger excerpt of main.css before minimization.
Here are the current grunt settings I'm using during minification
|
@jakubpawlowicz, any ideas here? I'm stumped and in a bit of a holding pattern. |
Hi @jakubpawlowicz. Checking in again to see if we can get some feedback here. Thanks! |
@that1guy sorry for a delay - I'll give it a look today. |
@that1guy I've retested it again using both CLI and API and it certainly works fine for me. Is there any chance autoprefixer strips those? |
From my tests that's not the issue. To explain, here is my grunt build-staging task with cssmin commented out.
Here are the autoprefixer settings (the same across all environments).
and after autoprefixer runs I see correct css.
Only when I enable cssmin in my grunt build-staging do I see.
|
Ugh, you nailed it, this issue caused because autoprefixer was outputting file to separate directory than useminprepare was telling cssmin to look. |
No worries, glad you solved it 👍 |
All my
-webkit
prefixes are getting stripped during the minification process. This causes all much of my application to behave badly on Safari & iOS device. I've spent a lot of time trying to resolve this one, but I'm stumped.Here's an example of my raw SASS
Here is the CSS that my compass SASS preprocessor produces
Here is what I see in browsers css styles inspector before minification.. Looks great!
When I do a build for my staging environment using grunt, thus running cssmin, I notice that -webkit is stripped from all my css:
here's what I see in the browser's css styles inspector after minification...
How do I resolve this?
thanks!
The text was updated successfully, but these errors were encountered: