@node-minify/clean-css
Advanced tools
Comparing version 8.0.2-beta.0 to 8.0.3-beta.0
@@ -10,3 +10,3 @@ import { MinifierOptions } from '@node-minify/types'; | ||
declare const minifyCleanCSS: { | ||
({ settings, content, callback, index }: MinifierOptions): any; | ||
({ settings, content, callback, index }: MinifierOptions): string | void; | ||
default: any; | ||
@@ -13,0 +13,0 @@ }; |
@@ -17,2 +17,6 @@ "use strict"; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -32,5 +36,5 @@ mod | ||
const contentMinified = _cleanCSS.styles; | ||
if (_cleanCSS.sourceMap && settings && settings.options && settings.options._sourceMap) { | ||
if (_cleanCSS.sourceMap && settings && settings.options && typeof settings.options._sourceMap === "object") { | ||
import_utils.utils.writeFile({ | ||
file: settings.options._sourceMap !== true && settings.options._sourceMap.url ? settings.options._sourceMap.url : null, | ||
file: settings.options._sourceMap.url ? settings.options._sourceMap.url : "", | ||
content: _cleanCSS.sourceMap.toString(), | ||
@@ -40,4 +44,4 @@ index | ||
} | ||
if (settings && !settings.content) { | ||
import_utils.utils.writeFile({ file: settings.output, content: contentMinified, index }); | ||
if (settings && !settings.content && settings.output) { | ||
settings.output && import_utils.utils.writeFile({ file: settings.output, content: contentMinified, index }); | ||
} | ||
@@ -44,0 +48,0 @@ if (callback) { |
{ | ||
"name": "@node-minify/clean-css", | ||
"version": "8.0.2-beta.0", | ||
"version": "8.0.3-beta.0", | ||
"description": "clean-css plugin for @node-minify", | ||
@@ -15,3 +15,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -45,14 +45,14 @@ "directories": { | ||
"clean": "pnpm dlx rimraf dist", | ||
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap", | ||
"prepublishOnly": "npm run build" | ||
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap", | ||
"prepublishOnly": "pnpm build" | ||
}, | ||
"dependencies": { | ||
"@node-minify/utils": "8.0.2-beta.0", | ||
"clean-css": "5.3.1" | ||
"@node-minify/utils": "8.0.3-beta.0", | ||
"clean-css": "5.3.2" | ||
}, | ||
"devDependencies": { | ||
"@node-minify/types": "8.0.2-beta.0", | ||
"@node-minify/types": "8.0.3-beta.0", | ||
"@types/clean-css": "^4.2.6" | ||
}, | ||
"gitHead": "bd2fe186257749fcb9bf7a9ff1ce61fb922c4ade" | ||
"gitHead": "f79e146eed24ca117756cf029eb5005631f12892" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15228
9
162
+ Added@node-minify/utils@8.0.3-beta.0(transitive)
+ Addedclean-css@5.3.2(transitive)
- Removed@node-minify/utils@8.0.2-beta.0(transitive)
- Removedclean-css@5.3.1(transitive)
Updatedclean-css@5.3.2