Tuesday, 15 May 2012

javascript - SASS task in gulp with sourceComments: 'map' produces 'Assertion failed' -



javascript - SASS task in gulp with sourceComments: 'map' produces 'Assertion failed' -

i have web app i'm developing using angularjs, d3, pixi.js, , gulp build system. works great together, except gulp-sass. here's relevant code:

gulp.task('sass-dev', ['clean-dev'], function() { homecoming gulp.src( cfg.appfiles.rootsass ) .pipe( sass({ errlogtoconsole: true })) .pipe( gulp.dest( cfg.builddir+cfg.destdirs.css ) ) .pipe( livereload( server ) ); });

cfg variable has predefined globs. if create 3rd line

.pipe( sass({ errlogtoconsole: true, sourcecomments: 'map' }))

by adding mapping of source (useful debugging), next fatal error.

assertion failed: (val->isstring()), function _nangetexternalparts, file ../node_modules/nan/nan.h, line 1725. abort trap: 6

on colleague's computer, works or without mapping. on mine, fails every time source comments mapped, , works without mapping. both computers imacs running latest version of node (npm), bower, , os x.

any thought causing this? issue in gulp or gulp-sass itself?

these options worked me.

{ errlogtoconsole: true, sourcecomments: 'map', sourcemap: 'sass' }.

there's seems weird going on.

javascript node.js sass gulp

No comments:

Post a Comment