1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

add skipping advanced optimizations for minifying css

This commit is contained in:
Tim Daubenschütz 2015-10-21 22:35:03 +02:00
parent b2634c5b3f
commit dd4a964142

View File

@ -111,7 +111,11 @@ gulp.task('sass:build', function () {
] ]
}).on('error', sass.logError)) }).on('error', sass.logError))
.pipe(gulpif(!argv.production, sourcemaps.write('./maps'))) .pipe(gulpif(!argv.production, sourcemaps.write('./maps')))
.pipe(gulpif(argv.production, minifyCss())) // We need to set `advanced` to false, as it merges
// some of the styles wrongly
.pipe(gulpif(argv.production, minifyCss({
advanced: false
})))
.pipe(gulp.dest('./build/css')) .pipe(gulp.dest('./build/css'))
.pipe(browserSync.stream()); .pipe(browserSync.stream());
}); });