KyleAMathews / coffee-react-quickstart

Quickstart for building React single page apps using Coffeescript, Gulp, Webpack, and React-Router
http://kyleamathews.github.io/coffee-react-quickstart
MIT License
254 stars 41 forks source link

Support CSS sourcemaps during development #12

Open alanhogan opened 10 years ago

alanhogan commented 10 years ago

The autoloader seems to be breaking CSS sourcemap support.

I'm not sure it's possible actually with the default css loader :(

See webpack/webpack#214

Perhaps we could write a custom loader that pulls in both the compiled css + its generated sourcemap.

See also, the inline approach: appleboy/gulp-compass#63

KyleAMathews commented 10 years ago

Yeah, inlined sourcemaps might work. Didn't think about that.

alanhogan commented 10 years ago

I have high hopes for that. I think there’s a little bug in gulp-compass that would let that technique work as soon as it’s fixed.

On Aug 21, 2014, at 7:06 PM, Kyle Mathews notifications@github.com wrote:

Yeah, inlined sourcemaps might work. Didn't think about that.

— Reply to this email directly or view it on GitHub.

KyleAMathews commented 10 years ago

And then I just need to get cjsx-loader up to speed: https://github.com/KyleAMathews/cjsx-loader/issues/2

alanhogan commented 10 years ago

No luck with sass 1.0.1 this morning, despite update to appleboy/gulp-compass#3

alanhogan commented 10 years ago

(as in, I do not see the sourcemap appearing as a comment)

KyleAMathews commented 10 years ago

No inline sourcemap in the file Sass generates?

alanhogan commented 10 years ago

Right. I don’t know why not. I cleared sass-cache and restarted everything I could think of.