failwyn / WebCompiler

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

Sourcemap in css has an absolute path #80

Open MatteoPiovanelli-Laser opened 1 year ago

MatteoPiovanelli-Laser commented 1 year ago

Installed product versions

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:

Expected behavior

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

failwyn commented 1 year ago

This is an issue with Dart-Sass…

https://github.com/sass/dart-sass/pull/1021