Skip to content

Commit 756cfc4

Browse files
committed
Add postcss-clean dep for minification
Re #90
1 parent 21160e9 commit 756cfc4

3 files changed

Lines changed: 87 additions & 0 deletions

File tree

css/postcss.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ module.exports = (ctx) => ({
234234
],
235235
"unspecified-properties-position": "bottomAlphabetical"
236236
}),
237+
require("postcss-clean")({
238+
advanced: false,
239+
roundingPrecision: 3
240+
}),
237241
require("postcss-header")({
238242
header: `/*\n * Readium CSS (v. ${version})\n * Developers: Jiminy Panoz \n * Copyright (c) 2017. Readium Foundation. All rights reserved.\n * Use of this source code is governed by a BSD-style license which is detailed in the\n * LICENSE file present in the project repository where this source code is maintained.\n*/`
239243
})

package-lock.json

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"backstopjs": "^4.5.0",
2929
"express": "^4.17.1",
3030
"postcss-alter-property-value": "^1.1.3",
31+
"postcss-clean": "^1.1.0",
3132
"postcss-cli": "^7.1.0",
3233
"postcss-css-variables": "^0.14.0",
3334
"postcss-custom-media": "^7.0.8",

0 commit comments

Comments
 (0)