Skip to content
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

Support source maps #44

Open
5 tasks
bhollis opened this issue Sep 17, 2013 · 25 comments
Open
5 tasks

Support source maps #44

bhollis opened this issue Sep 17, 2013 · 25 comments
Milestone

Comments

@bhollis
Copy link
Contributor

bhollis commented Sep 17, 2013

We should have the ability to produce sourcemaps for combined files as well as CoffeeScript, SASS/SCSS, etc.

@sandstrom
Copy link

😍

@duncanbeevers
Copy link

https://github.com/thlorenz/combine-source-map can be used to curry sourcemaps through multiple build phases.

@kevinSuttle
Copy link

Any update on this?

@bhollis
Copy link
Contributor Author

bhollis commented Feb 19, 2014

When there is an update, it will be posted here.

@renatocarvalho
Copy link

It seems SourceMap support was just merged.

@jmuheim
Copy link

jmuheim commented Aug 18, 2014

It seems SourceMap support was just merged.

Where?

@renatocarvalho
Copy link

@jmuheim Here: sstephenson/sprockets#311 (comment)

But it seems it's not on master yet.

@jmuheim
Copy link

jmuheim commented Aug 21, 2014

Thanks! 👍

@alem0lars
Copy link
Contributor

Are there any news about source maps support in middleman?

@tdreyno
Copy link
Member

tdreyno commented Oct 31, 2014

Seems like this should work:

configure :build do
  set :sass, :sourcemap => :inline
end

@TD540
Copy link

TD540 commented Nov 26, 2014

Doesn't seem to work. All I get are inline references to sass files and not the actual source map code.

@Arcovion
Copy link
Contributor

This issue is tracking inline sourcemaps: sass/sass#1484
The current inline option adds CSS to the sourcemap, this issue adds the sourcemap to the CSS so there's no need for a map file at all.

@TD540
Copy link

TD540 commented Dec 9, 2014

Something's not going right here.

How do I get inline source maps to work with Chrome?

I added my middleman folder to the Chrome workspace, but the CSS inspector still shows the compiled styles.css file as source.

And I activated inline source maps in config.rb like this:

configure :development do
  set :sass, :sourcemap => :inline
end

Also, these are the types of comments found in styles.css:

/* line 17, /Users/dcrck/Desktop/project/source/stylesheets/components/_articles.scss */

@Arcovion
Copy link
Contributor

Arcovion commented Dec 9, 2014

@dcrck My understanding is that the current inline option adds CSS information to the sourcemap, but Middleman doesn't support/output any sourcemaps yet. The issue I linked above intends to add the sourcemap information to the CSS which would work fine, Middleman wouldn't need to output any sourcemap files, but that feature hasn't been added to Sass yet.

So I don't think there's a way to make sourcemaps work properly atm =[

@sgoblin
Copy link

sgoblin commented Jun 6, 2015

Is there any progress on js minification source maps?

@cassidyclawson
Copy link

Just another avid user checking in on this feature. CSS source maps are pretty critical for many of us these days. Thanks much!

@tdreyno
Copy link
Member

tdreyno commented Jul 7, 2015

Looks like neither Sass nor Sprockets upstream support the feature in their stable releases yet :(

@cassidyclawson
Copy link

Thanks for the update @tdreyno

I've seen evidence that people have found a workaround by using another file watching system like grunt.

middleman/middleman#1451

Perhaps someone who has pulled this off (@andreimoment?) can share the technique / code snippets? Thanks much!

@andreimoment
Copy link

I couldn't make that work with the ruby tools. At the time libsass was not ready so I gave up and went without the maps feature.

Andrei

On Jul 7, 2015, at 1:25 PM, Cassidy Clawson notifications@github.com wrote:

Thanks for the update @tdreyno

I've seen evidence that people have found a workaround by using another file watching system like grunt.

middleman/middleman#1451

Perhaps someone who has pulled this off (@andreimoment?) can share the technique / code snippets? Thanks much!


Reply to this email directly or view it on GitHub.

@tdreyno
Copy link
Member

tdreyno commented Jul 9, 2015

@cassidyclawson v4 betas makes it pretty easy to offload parts of the stack to other processes (like gulp). Check out the external_pipeline feature. I've been using Webpack for this.

@stevenosloan stevenosloan added this to the 4.1.0 milestone Mar 31, 2016
@hellokatili
Copy link

This issue is STILL open!?!? o_O
Next week it has its THIRD birthday!!

@tdreyno
Copy link
Member

tdreyno commented Sep 8, 2016

Sprockets 4 still hasn't shipped :(

@ckizer
Copy link

ckizer commented Jan 19, 2017

Any update on this?

@stevenosloan
Copy link
Collaborator

Happy to take any PRs, but Sprockets 4 is still in beta

@dsteppeler
Copy link

Can anyone tell me which the best way for debugging Sass-code within the browser is?
So far I used the old way with inline comments, firebug and fireCompass. Now firebug is dead and source maps do not seem to be working in many development environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests