Hello. Unfortunately, for some reason, sourcemaps works completely incorrectly and indicates the line number in the css file, and not in the scss file, as a result, the meaning of this module is completely lost.
The task looks like this:
gulp.task('sass', function() { return combiner( gulp.src([ 'dev/scss/main.scss' , 'dev/scss/project_components/**/*.scss' ]), debug({title: 'src'}), gulpIf(isDevelop, sourcemaps.init()), sass( sassOptions ), gcmq(), autoprefixer({ browsers: ['last 4 versions'] }), rename(function (path) { path.dirname += '/css'; path.basename = 'main' ? 'style' : path.basename; }), gulpIf(isDevelop, sourcemaps.write('.')), gulpIf(!isDevelop, csso()), newer('app'), gulp.dest('app'), debug({title: 'dest'}) ).on('error', notify.onError(function(err){ return { title: 'sass', message: err.message } })) });
Enable CSS source mapsincluded in DevTools? 2. Is Gulp running inisDevelopmodeisDevelop? - YozhEzhisourcemapsandsassin the taskbar and see the result. - YozhEzhisassandsourcemaps, it all worked. Then I started commenting one by one, in the end everything returned to its place and everything works. - pepel_xD