Skip to content

Commit

Permalink
Disable calc minification (#2212)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylersticka committed Sep 18, 2023
1 parent d02e6be commit 9dbe23a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/slimy-eagles-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cloudfour/patterns': patch
---

Disable calc optimization in minified stylesheet. This addresses a warning when `calc` included a `clamp` function, and very slightly reduces the size of the stylesheet when compressed.
2 changes: 1 addition & 1 deletion gulpfile.js/tasks/build-sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const buildSass = () =>
.pipe(
postcss([
cssnano({
preset: ['cssnano-preset-default', { colormin: false }],
preset: ['cssnano-preset-default', { colormin: false, calc: false }],
}),
])
)
Expand Down

0 comments on commit 9dbe23a

Please sign in to comment.