cssnano 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.6.1
2
+
3
+ * Improved performance of the core module `functionOptimiser`.
4
+
1
5
  # 2.6.0
2
6
 
3
7
  * Adds a new optimisation which re-orders properties that accept values in
@@ -9,9 +9,7 @@ var functions = [
9
9
  'calc',
10
10
  'cubic-bezier',
11
11
  'gradient',
12
- 'hsl',
13
12
  'rect',
14
- 'rgb',
15
13
  'rotate3d',
16
14
  'scale',
17
15
  'scale3d',
@@ -44,8 +42,6 @@ function optimise (decl) {
44
42
 
45
43
  module.exports = postcss.plugin('cssnano-function-optimiser', function () {
46
44
  return function (css) {
47
- functions.forEach(function (fn) {
48
- css.eachDecl(optimise);
49
- });
45
+ css.eachDecl(optimise);
50
46
  };
51
47
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cssnano",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "A modular minifier, built on top of the PostCSS ecosystem.",
5
5
  "main": "index.js",
6
6
  "bin": {