-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Character encoding at-rule in css from sass breaks sourcemap #430
Comments
Can you put here sources and map files. |
scss:
pre.css
pre.css.map:
--> [email protected] with [email protected] app.css
app.css.map (unminified)
|
@JacobDorman I mean zip file with all file inside :). But maybe you can help me. Can you check finish output CSS and maps by source map vizializer. Click “Custom…”, select all necessary files, and pt link with base64 here. |
I'll check out source map visualizer, but that repo contains a minimal test case with css and map output committed, as well as the node dependencies. master branch produces the broken sourcemap: You can see a comparison of app.scss -> pre.css pre.css.map -> app.css app.css.map by Comparing the Branches git clone [email protected]:JacobDorman/libsass-autoprefixer-test.git
grunt sass
grunt postcss #broken sitemap
git checkout works
grunt sass
grunt postcss #working sitemap |
Visualizer results: Both times the site prompts for |
It is a Sass issue postcss/postcss#308 |
A unicode character in SCSS causes libsass to add
@charset "UTF-8";
to the CSS. The sourcemap works correctly.After running through autoprefixer, the new sourcemap points at the CSS instead of the SCSS.
[email protected]
[email protected]
with[email protected]
nDmitry/grunt-autoprefixer#88
The text was updated successfully, but these errors were encountered: