Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

SourceMap: Value of "file" in map file should be path to CSS not SCSS #219

Closed
am11 opened this issue Jan 11, 2014 · 1 comment
Closed

SourceMap: Value of "file" in map file should be path to CSS not SCSS #219

am11 opened this issue Jan 11, 2014 · 1 comment

Comments

@am11
Copy link
Contributor

am11 commented Jan 11, 2014

In the following output:

Map path - C:\Users\Adeel\Documents\Visual Studio 2013\WebSites\WebSite1\1\2\3\css\cd.css.map

{
    "version": 3,
    "file": "C:\Users\Adeel\Documents\Visual Studio 2013\WebSites\WebSite1\1\2\3\SASS\cd.scss",
    "sources": [
        "C:\Users\Adeel\Documents\Visual Studio 2013\WebSites\WebSite1\1\2\3\SASS\cd.scss"
    ],
    "names": [

    ],
    "mappings": "AAsCA;EACI,QAAQ;;AAGZ,MAAM,OAAO,UAAU;EArCnB,aAAa;EAwCb,WAAW;;AAEf,IAAI,IAAI,IAAI,IAAI;EA1CZ,aAAa;;AA8CjB;EACI,OAAO;EACP,WAAW;EACX,YAAY;EACZ,eAAe;;AAEnB;EACI,WAAW;;AAEf;EACI,OAAO;EACP,YAAY;;AAEhB;EA3DI,aAAa;EA8Db,WAAW;;AAGf;EACI,YAAqC;EACrC,YAAY;EAEZ,eAAe;EAJnB,UAKI;IACI,QAAQ;IACR,kBAAkB;;AAKtB;EADJ,MAEQ;IAAQ,SAAS;EAFzB,MAGQ;IAAQ,SAAS;AAErB;EALJ;IAMQ,SAAS;IANjB,MAOQ;MAAQ,SAAS;AAErB;EATJ;IAUQ,SAAS;IAVjB,MAWQ;MAAQ,SAAS;AAXzB,MAcI;EAAK,QAAQ"
}

The value of file is supposed to be path to output CSS, not the input SCSS.

In which case, the aforementioned result should have:

"file": "C:\\Users\\Adeel\\Documents\\Visual Studio 2013\\WebSites\\WebSite1\\1\\2\\3\\css\\cd.css"

(with \ in path)

@andrew
Copy link
Contributor

andrew commented Jan 11, 2014

I believe this is also an issue in libsass, which someone already reported here: sass/libsass#217

Once libsass has been updated we can ship a new version.

@andrew andrew closed this as completed Jan 11, 2014
jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
…supportv2

Improve variable argument support
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants