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

Bug on source comments relative paths #433

Closed
luisestebanveragomez opened this issue Jan 26, 2016 · 1 comment
Closed

Bug on source comments relative paths #433

luisestebanveragomez opened this issue Jan 26, 2016 · 1 comment

Comments

@luisestebanveragomez
Copy link

I`m using gulp-sass v2.1.1, and the paths of the source .sass file show a absolute path, this is the gulp task

`gulp.task('sass', function () {

gulp.src(app.sass)
.pipe(sass({
indentedSyntax: true,
outputStyle: 'expanded',
sourceComments: true
})
.pipe(gulp.dest(dist.css))
});`
this is the type of commet that shows

/* line 113, /Users/estebanvera/Documents/Sites/project/profiles/themes/custom/project_theme/sass/pages/_home.sass */

and I want a path relative to the css output file
../sass/pages/_home.sass

How can i achive this.

Thanks.

@xzyfer
Copy link
Collaborator

xzyfer commented Jan 27, 2016

This is a bug in LibSass. I've created sass/libsass#1898 to track it there.
There's not gulp-sass can do. You can work around this by running a string replace over the file after compilation.

@xzyfer xzyfer closed this as completed Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants