WebCompiler icon indicating copy to clipboard operation
WebCompiler copied to clipboard

Minifier strips units from 0fr.

Open lgamache-nmedia opened this issue 1 year ago • 3 comments

Installed product versions

  • Visual Studio: Microsoft Visual Studio Enterprise 2022 (64-bit)
  • This extension: 1.14.11

Description

The minifier removes the unit "fr" when the value is 0. Wich should not happen, since it breaks animations betwen fractions like 0fr to 1fr.

Steps to recreate

  1. Create scss file with a property with value "0fr"
  2. Compile file to get a minified css

Current behavior

The compiler removes the unit "fr" from the "0fr" value, wich leaves only "0" in the minified version.

Expected behavior

The compiler should leave the "fr" in the value untouched, otherwise some things might break, like animations.

lgamache-nmedia avatar Jan 11 '24 20:01 lgamache-nmedia

This needs to be fixed in NUglify, post an issue there and I will upgrade it as soon as it's fixed.

failwyn avatar Feb 28 '24 18:02 failwyn

Issue has been created: https://github.com/trullock/NUglify/issues/384

lgamache-nmedia avatar Feb 28 '24 22:02 lgamache-nmedia

This should be fixed in the latest release

failwyn avatar Aug 06 '24 12:08 failwyn