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

SourceMap generates wrong paths #1194

Closed
hashworks opened this issue Oct 4, 2015 · 3 comments
Closed

SourceMap generates wrong paths #1194

hashworks opened this issue Oct 4, 2015 · 3 comments

Comments

@hashworks
Copy link

Example setup with grunt-sass: https://moonbase.hashworks.net/grunt-sass-issue-241.tar

Gruntfile.js
index.html
package.json
css
├── screen.css
└── screen.css.map
sass
└── screen.scss

screen.css.map:

{
        "version": 3,
        "file": "screen.css",
        "sources": [
                "../screen.scss"
        ],
        "sourcesContent": [],
        "mappings": "AAAA;EAIC,AAAkB;EAHnB,AAAM;IACJ,AAAkB",
        "names": []
}

Should be ../sass/screen.scss.

@saper
Copy link
Member

saper commented Oct 4, 2015

Got

Whoops! Error 404

The page you're trying to access doesn't seem to exist anymore.

Check out what's available!

@xzyfer
Copy link
Contributor

xzyfer commented Oct 5, 2015

Thanks for the report @hashworks. Could you please created a small GitHub repo with a minimal work example reproducing this issue. This will ensure there are no other external factors.
Also our experience the process of creating these test repos in itself surfaces the problem.

@hashworks
Copy link
Author

Hi, sry for the dead link.

I reproduced my case with grunt-sass v0.18.1, however it seems to be fixed with grunt-sass v1.1.0-beta (which includes node-sass v3.0 and libsass v3.2.0).

jiongle1 pushed a commit to scantist-ossops-m2/node-sass that referenced this issue Apr 7, 2024
Improve ie property and expression parsing
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

3 participants