@node-minify/clean-css 6.4.0 → 7.1.0

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.
Files changed (2) hide show
  1. package/lib/clean-css.js +1 -11
  2. package/package.json +4 -4
package/lib/clean-css.js CHANGED
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var _cleanCss = _interopRequireDefault(require("clean-css"));
4
-
5
4
  var _utils = require("@node-minify/utils");
6
-
7
5
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
-
9
6
  /*!
10
7
  * node-minify
11
8
  * Copyright(c) 2011-2022 Rodolphe Stoclin
@@ -33,11 +30,8 @@ const minifyCleanCSS = ({
33
30
  settings.options._sourceMap = settings.options.sourceMap;
34
31
  settings.options.sourceMap = true;
35
32
  }
36
-
37
33
  const _cleanCSS = new _cleanCss.default(settings.options).minify(content);
38
-
39
34
  const contentMinified = _cleanCSS.styles;
40
-
41
35
  if (_cleanCSS.sourceMap && settings.options._sourceMap) {
42
36
  _utils.utils.writeFile({
43
37
  file: settings.options._sourceMap.url,
@@ -45,7 +39,6 @@ const minifyCleanCSS = ({
45
39
  index
46
40
  });
47
41
  }
48
-
49
42
  if (!settings.content) {
50
43
  _utils.utils.writeFile({
51
44
  file: settings.output,
@@ -53,16 +46,13 @@ const minifyCleanCSS = ({
53
46
  index
54
47
  });
55
48
  }
56
-
57
49
  if (callback) {
58
50
  return callback(null, contentMinified);
59
51
  }
60
-
61
52
  return contentMinified;
62
53
  };
54
+
63
55
  /**
64
56
  * Expose `minifyCleanCSS()`.
65
57
  */
66
-
67
-
68
58
  module.exports = minifyCleanCSS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-minify/clean-css",
3
- "version": "6.4.0",
3
+ "version": "7.1.0",
4
4
  "description": "clean-css plugin for @node-minify",
5
5
  "keywords": [
6
6
  "compressor",
@@ -13,7 +13,7 @@
13
13
  "license": "MIT",
14
14
  "main": "lib/clean-css.js",
15
15
  "engines": {
16
- "node": ">=12.0.0"
16
+ "node": ">=14.0.0"
17
17
  },
18
18
  "directories": {
19
19
  "lib": "lib",
@@ -33,8 +33,8 @@
33
33
  "url": "https://github.com/srod/node-minify/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@node-minify/utils": "^6.4.0",
36
+ "@node-minify/utils": "^7.1.0",
37
37
  "clean-css": "5.3.1"
38
38
  },
39
- "gitHead": "d529747a661487597e9be510d3d9e2df1bc0f556"
39
+ "gitHead": "94cef2d5d653c3bddc3e603b4e25c135b0b6f4b3"
40
40
  }