0
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/'))
});
我不想生成.map文件。我試過了:{sourcemap:false}但沒有任何效果。還有消息說:吞掉-紅寶石薩斯:標準錯誤:棄用警告:傳遞生成不需要的.map文件
--sourcemap without a value is deprecated.
Sourcemaps are now generated by default, so this flag has no effect.
有什麼辦法來停止生成.MAP文件?
感謝這麼多。有用。 – joe 2015-04-01 14:33:55