add "custom-editor-style" to minify process

This commit is contained in:
Lilumi Odi 2019-09-28 16:30:03 +03:00
parent ac0713dfca
commit 16144fd330
1 changed files with 11 additions and 3 deletions

View File

@ -107,10 +107,18 @@ gulp.task('cssnano', function () {
}); });
gulp.task('minifycss', function () { gulp.task('minifycss', function () {
return gulp return gulp
.src(`${paths.css}/theme.css`) .src([
.pipe(sourcemaps.init({ loadMaps: true })) `${paths.css}/custom-editor-style.css`,
.pipe(cleanCSS({ compatibility: '*' })) `${paths.css}/theme.css`,
])
.pipe(sourcemaps.init({
loadMaps: true
}))
.pipe(cleanCSS({
compatibility: '*'
}))
.pipe( .pipe(
plumber({ plumber({
errorHandler: function (err) { errorHandler: function (err) {