@node-minify/csso 7.0.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.
- package/lib/csso.js +1 -8
- package/package.json +4 -4
package/lib/csso.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _csso = _interopRequireDefault(require("csso"));
|
|
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
|
|
@@ -30,7 +27,6 @@ const minifyCSSO = ({
|
|
|
30
27
|
index
|
|
31
28
|
}) => {
|
|
32
29
|
const contentMinified = _csso.default.minify(content, settings.options.restructureOff);
|
|
33
|
-
|
|
34
30
|
if (!settings.content) {
|
|
35
31
|
_utils.utils.writeFile({
|
|
36
32
|
file: settings.output,
|
|
@@ -38,16 +34,13 @@ const minifyCSSO = ({
|
|
|
38
34
|
index
|
|
39
35
|
});
|
|
40
36
|
}
|
|
41
|
-
|
|
42
37
|
if (callback) {
|
|
43
38
|
return callback(null, contentMinified.css);
|
|
44
39
|
}
|
|
45
|
-
|
|
46
40
|
return contentMinified.css;
|
|
47
41
|
};
|
|
42
|
+
|
|
48
43
|
/**
|
|
49
44
|
* Expose `minifyCSSO()`.
|
|
50
45
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
46
|
module.exports = minifyCSSO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-minify/csso",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "csso plugin for @node-minify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compressor",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"url": "https://github.com/srod/node-minify/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@node-minify/utils": "^7.
|
|
37
|
-
"csso": "5.0.
|
|
36
|
+
"@node-minify/utils": "^7.1.0",
|
|
37
|
+
"csso": "5.0.5"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "94cef2d5d653c3bddc3e603b4e25c135b0b6f4b3"
|
|
40
40
|
}
|