Skip to content
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

Unnecessary changes introduced on compile of SASS files #486

Open
Konntroll opened this issue Mar 30, 2022 · 0 comments
Open

Unnecessary changes introduced on compile of SASS files #486

Konntroll opened this issue Mar 30, 2022 · 0 comments

Comments

@Konntroll
Copy link

Installed product versions

  • Visual Studio: 2019
  • This extension: 1.12.394

Description

Recently, compiling SASS files started introducing unnecessary / unwanted changes to previously generated files. These changes include the following:

.my-class-name {
  width: 100px;
  height: 100px;
}

becomes

.my-class-name {
  width: 100px;
  height: 100px; }

in every rule block of every re-compiled CSS file.

Furthermore:

  • @charset "UTF-8"; is added at the top of the re-compiled CSS files,]
  • Leading 0s in decimal values are dropped, i.e. 0.5em becomes .5em
  • "" get replaced with ''
  • Character codes like "\f144" are replaced with "".

This introduces extensive yet largely meaningless changes that cause conflicts, look confusing on PRs and, in the latter case, could introduce issues.

Steps to recreate

  1. Compile SASS
  2. Observe the differences in generated CSS files

Current behavior

Compiled CSS files display unnecessary changes.

Expected behavior

Compiled CSS files only display deliberately introduced changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant