-
-
Notifications
You must be signed in to change notification settings - Fork 310
CSS sourcemap's path is incorrect. #364
Comments
same issue here |
Hi, @eliberov ,I have found a workaround:just set the .tmp directory's path inside app folder. |
What options did you set? Did you use Ruby Sass or node-sass? |
1,no customized settings,just a fresh webapp; |
confirm that Ruby Sass has the same problem. |
Hi All. I've been able to solve this issue by adding grunt-sed to the mix. Sadly, this grunt plugin doesn't support glob expansion in the path attribute, so I cannot force it to process just the css.map files.
I have added this task to run after autoprefixer on the serve task, which is where I'd need it. I've noted that the grunt-sed plugin is quite outdated. The same solution could be implemented via the grunt-contrib-copy plugin already present, I believe. Yet another implementation could be achieved with the grunt-replace plugin. In case this solution seems viable, I could supply my current version. |
Here's another workaround: yeoman/generator-angular#574 (comment) |
I fixed this issue in another approach. connect: {
...
livereload: {
options: {
middleware: function(connect) {
return [
connect.static('.tmp'),
connect().use('/bower_components', connect.static('./bower_components')),
connect.static(config.app),
// Resolve the reference from map file.
connect().use('/' + config.app + '/styles', connect.static('./' + config.app + '/styles'))
];
}
}
},
...
}, It works fine with both Ruby Sass and Libsass. If this patch is welcome, I'll send a pull request. |
Any fix for getting (grunt-contrib-sass) Sass source maps to show up in Web Inspector? Tried adding The sourcemap is being generated to .tmp > styles > main.css.map. However, it's not showing up in web inspector when running Am I missing something? |
Hi @djmtype, are you using the master branch of I hope this helps. |
@htanjo Now, that's a wonderful thing. Cheers! |
The fix is released in v0.6.1. |
can't find the .scss file.
In the console the path is: http://localhost:9000/app/styles/main.scss
which should be: http://localhost:9000/styles/main.scss
I hope to hear some workaround. Thanks.
The text was updated successfully, but these errors were encountered: