Skip to content

Sourcemap in css has an absolute path #80

@MatteoPiovanelli

Description

@MatteoPiovanelli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions