gulp - Unwanted .map files generated -


var gulp =require('gulp'),     sass = require('gulp-ruby-sass')     minifycss = require('gulp-minify-css'),     sourcemaps = require('gulp-sourcemaps'),     jshint = require('gulp-jshint'),     uglify = require('gulp-uglify'),     imagemin = require('gulp-imagemin'),     rename = require('gulp-rename'),     concat = require('gulp-concat'),     notify = require('gulp-notify'),     cache = require('gulp-cache'),     livereload = require('gulp-livereload'),     autoprefixer = require('gulp-autoprefixer'),     del = require('del');  gulp.task('styles', function() {   return gulp.src('./public/styles/sass/*.sass')     .pipe(sass())     .pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1'))     .pipe(gulp.dest('./public/styles/css/')) }); 

i did not want .map files generated. tried: {sourcemap: false} nothing works. message said: gulp-ruby-sass: stderr: deprecation warning: passing

--sourcemap without value deprecated. sourcemaps generated default, flag has no effect. 

is there way stop .map files being generated?

update gulp-ruby-sass version 1.0 , change code:

gulp.task('styles', function() {    return sass('./public/styles/sass/*.sass')        .pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1'))        .pipe(gulp.dest('./public/styles/css/')) }); 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -