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

Sourcemap in css has an absolute path #80

Open
MatteoPiovanelli-Laser opened this issue Jun 15, 2023 · 1 comment
Open

Sourcemap in css has an absolute path #80

MatteoPiovanelli-Laser opened this issue Jun 15, 2023 · 1 comment

Comments

@MatteoPiovanelli-Laser
Copy link

Installed product versions

  • Visual Studio: 2022 Professional
  • This extension: 1.14.10

Description

When generating a css file from a scss, the inline sourcemap has a reference to the absolute path of the scss on the development machine.

Steps to recreate

  1. Replace this
  2. text with
  3. the steps
  4. to recreate

Current behavior

When generating a css file from a scss, the inline sourcemap has a reference to the absolute path of the scss on the development machine.
This is wrong because:

  • It exposes the folder structure of the development machine.
  • If I commit the artifacts (the css files) to version control, compiling the same scss on different machines results in different css.
  • The path is wrong when the css artifact is deployed.

Expected behavior

I suppose the path to the source map should be relative from the artifact's location.

@failwyn
Copy link
Owner

failwyn commented Jun 20, 2023

This is an issue with Dart-Sass…

sass/dart-sass#1021

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

2 participants