Skip to content

Commit

Permalink
cleanCSS neodstraňuje jednotky z nulových hodnot
Browse files Browse the repository at this point in the history
  • Loading branch information
michaljerabek committed Nov 19, 2017
1 parent 8803c3a commit 70e3a31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/all.min.css

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion gulpfile.js
Expand Up @@ -94,7 +94,9 @@ gulp.task("css", () => {
.pipe(
gulp.dest(path.resolve(PATHS.CSS_OUTPUT_DIR))
)
.pipe(cleanCSS())
.pipe(cleanCSS({
compatibility: "ie8,-properties.zeroUnits"
}))
.pipe(rename(path => path.basename = file.replace(PATHS.CSS_IMPORT, PATHS.CSS_OUTPUT_MIN)))
.pipe(
gulp.dest(path.resolve(PATHS.CSS_OUTPUT_DIR))
Expand Down

0 comments on commit 70e3a31

Please sign in to comment.