failwyn / WebCompiler

Visual Studio extension for compiling LESS and Sass files
Other
77 stars 16 forks source link

Minifier strips units from 0fr. #93

Open lgamache-nmedia opened 10 months ago

lgamache-nmedia commented 10 months ago

Installed product versions

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.

failwyn commented 8 months ago

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

lgamache-nmedia commented 8 months ago

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

failwyn commented 3 months ago

This should be fixed in the latest release