Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit cb2153f

Browse files
Fix cssnano stripping out font-family declarations
1 parent 3992b60 commit cb2153f

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 2.6.1: 2025-01-22
2+
3+
* Fix cssnano stripping out font-family declarations
4+
15
### 2.6.0: 2024-11-25
26

37
* Remove postcss plugins postcss-minify-font-values and postcss-discard-unused

gulp/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ module.exports = {
66
"preset": [
77
"cssnano-preset-advanced",
88
{
9+
discardUnused: false, // Prevent removal of seemingly unused font-family
10+
reduceInitial: false, // Retain initial value optimizations
911
"discardComments": {
1012
"removeAll": true
1113
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PROJECTNAME",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "PROJECTNAME powered by dudestack + devpackages",
55
"author": "Digitoimisto Dude Oy (moro@dude.fi)",
66
"devDependencies": {
@@ -64,4 +64,4 @@
6464
"webpack": "^5.75.0",
6565
"webpack-stream": "^7.0.0"
6666
}
67-
}
67+
}

0 commit comments

Comments
 (0)