0

Context

I am experiencing an issue when using the JS API, sourcemap compile option when used in tandem with style = compressed.

The source map is produced and I write it to a file. However, the mappings are broken and in Chrome's devtools, I am seeing styles pointing to the wrong file.

Screenshots

Wrong

Wrong paths

Correct

Correct paths

There is an opened issue on sass/dart-sass repository available here with a reproducible steps - https://github.com/sass/dart-sass/issues/1896.

As noted by @nex3, the source map vizualisation tool points to the correct path.

Built the source maps with no minification from sass and the chrome devtools shows the correct paths for class name styles.

d.ts
  • 1

0 Answers0