Skip to content

Commit

Permalink
fix(minified): fix select border minification (#4442)
Browse files Browse the repository at this point in the history
  • Loading branch information
redallen committed Oct 14, 2021
1 parent 07931a4 commit c26a854
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/gulp/sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,15 @@ function watchSASS(sassFiles) {
watcher.on('add', compileDocSASS);
}

const postcssOptions = {
preset: ['default', { mergeLonghand: false }]
};

function minifyCSS() {
return src('./dist/patternfly.css')
.pipe(rename('patternfly.min.css'))
.pipe(sourcemaps.init())
.pipe(postcss([cssnano()]))
.pipe(postcss([cssnano(postcssOptions)]))
.pipe(sourcemaps.write('.'))
.pipe(dest('dist'));
}
Expand Down

0 comments on commit c26a854

Please sign in to comment.