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 () {
return gulp
.src(`${paths.css}/theme.css`)
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(cleanCSS({ compatibility: '*' }))
.src([
`${paths.css}/custom-editor-style.css`,
`${paths.css}/theme.css`,
])
.pipe(sourcemaps.init({
loadMaps: true
}))
.pipe(cleanCSS({
compatibility: '*'
}))
.pipe(
plumber({
errorHandler: function (err) {