• Resolved noname

    (@dimaeromin)


    I like this plugin, but the minification of css files breaks the styles of my site.

    the minification mode removes unit values if they are zero, for example: if there is 0px, 0em and so on the frontend will just be 0, which in turn breaks css-calc because just 0 without a unit is not a valid entry

    could you exclude css-var from the minification algorithm.

    here’s an example: https://codepen.io/dimaeromin97/pen/YzZydmq

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Raul P.

    (@alignak)

    The minification library is called PHP Minify, so that is what is used to minify.
    https://github.com/matthiasmullie/minify

    If it’s not compatible with your code, you would need to either change the css code or report the bug to the library author.

    But I will look into that internally as well, when I have some time.
    Meanwhile, you can exclude the css file using the plugin settings, so it doesn’t get minified.

Viewing 1 replies (of 1 total)
  • The topic ‘CSS Var and Calc’ is closed to new replies.