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:
parent
b2634c5b3f
commit
dd4a964142
@ -111,7 +111,11 @@ gulp.task('sass:build', function () {
|
||||
]
|
||||
}).on('error', sass.logError))
|
||||
.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(browserSync.stream());
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user