Menu icon Foundation
Problem with css minify on F6 (gulp)

Has anyone encountered any strange issues with the css minified version? For example I'm missing styles in my production css.

My unminified css works great, has all the styles, but after I ran "npm run build" the minified css doesn't have some of my styles(for example, my custom hamburger menu is not working )

foundation 6minifycssgulpprojectproduction

Has anyone encountered any strange issues with the css minified version? For example I'm missing styles in my production css.

My unminified css works great, has all the styles, but after I ran "npm run build" the minified css doesn't have some of my styles(for example, my custom hamburger menu is not working )

Jacob Brooks over 3 years ago

Just curious, is your custom css in a separate .css file?

Rafi Benkual over 3 years ago

It could have to do with UnCSS: https://github.com/zurb/foundation-sites/issues/7909

You might try removing that step in the Gulpfile

Dani Nanestean over 3 years ago

@Jacob Brooks - No it's not.

@Rafi Benkual - Thanks Rafi, that did it. Although my css is now a bit larger, but still it's ok and working and most important I don't have to manually minify it. :) Looking forward to the fix.

Thank you for such a prompt reply!